From ef819910460cda215cdb6ec60de5263059a4f4ed Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 16 Jun 2020 08:54:58 -0700 Subject: [PATCH] Added standard payment processing for Stripe BOD-146. --- bodyshop_translations.babel | 112 ++++++++++++++++- .../payment-form/payment-form.component.jsx | 109 ++++++++++++---- .../payment-form/payment-form.container.jsx | 8 +- .../payment-modal/payment-modal.container.jsx | 119 ++++++++++++------ .../payment-modal/payment-modal.wrapper.jsx | 0 client/src/graphql/payments.queries.js | 11 ++ client/src/translations/en_us/common.json | 9 +- client/src/translations/es/common.json | 9 +- client/src/translations/fr/common.json | 9 +- .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 33 +++++ .../up.yaml | 36 ++++++ .../down.yaml | 31 +++++ .../up.yaml | 34 +++++ .../down.yaml | 33 +++++ .../up.yaml | 36 ++++++ hasura/migrations/metadata.yaml | 38 ++++++ server/stripe/payment.js | 16 +-- 25 files changed, 599 insertions(+), 84 deletions(-) delete mode 100644 client/src/components/payment-modal/payment-modal.wrapper.jsx create mode 100644 client/src/graphql/payments.queries.js create mode 100644 hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/down.yaml create mode 100644 hasura/migrations/1592257483098_alter_table_public_payments_add_column_transactionid/up.yaml create mode 100644 hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/down.yaml create mode 100644 hasura/migrations/1592257505571_alter_table_public_payments_add_column_memo/up.yaml create mode 100644 hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/down.yaml create mode 100644 hasura/migrations/1592260834130_alter_table_public_payments_alter_column_amount/up.yaml create mode 100644 hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/down.yaml create mode 100644 hasura/migrations/1592260861278_alter_table_public_payments_add_column_stripeid/up.yaml create mode 100644 hasura/migrations/1592261038745_update_permission_user_public_table_payments/down.yaml create mode 100644 hasura/migrations/1592261038745_update_permission_user_public_table_payments/up.yaml create mode 100644 hasura/migrations/1592261045012_update_permission_user_public_table_payments/down.yaml create mode 100644 hasura/migrations/1592261045012_update_permission_user_public_table_payments/up.yaml create mode 100644 hasura/migrations/1592261051274_update_permission_user_public_table_payments/down.yaml create mode 100644 hasura/migrations/1592261051274_update_permission_user_public_table_payments/up.yaml diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index f269fd7d8..0b465c43b 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -1,4 +1,4 @@ - +