From 90bfc0f081c49875e63f7a734c678a347d8548a5 Mon Sep 17 00:00:00 2001 From: Basil Kotov Date: Wed, 18 Dec 2024 14:27:12 +0000 Subject: [PATCH] add cybersource payment processing --- client-app/pages/checkout/payment.vue | 6 + .../payment-processing-cyber-source.vue | 175 ++++++++++++++++++ locales/en.json | 3 +- 3 files changed, 183 insertions(+), 1 deletion(-) create mode 100644 client-app/shared/payment/components/payment-processing-cyber-source.vue diff --git a/client-app/pages/checkout/payment.vue b/client-app/pages/checkout/payment.vue index e61a6d95d..d615c5697 100644 --- a/client-app/pages/checkout/payment.vue +++ b/client-app/pages/checkout/payment.vue @@ -32,6 +32,11 @@ @success="onPaymentResult(true)" @fail="onPaymentResult(false)" /> + @@ -50,6 +55,7 @@ import { PaymentActionType, PaymentProcessingRedirection } from "@/shared/paymen import type { PaymentInType } from "@/core/api/graphql/types"; import PaymentProcessingAuthorizeNet from "@/shared/payment/components/payment-processing-authorize-net.vue"; import PaymentProcessingSkyflow from "@/shared/payment/components/payment-processing-skyflow.vue"; +import PaymentProcessingCyberSource from "@/shared/payment/components/payment-processing-cyber-source.vue"; const router = useRouter(); const { placedOrder, allOrderItemsAreDigital } = useCheckout(); diff --git a/client-app/shared/payment/components/payment-processing-cyber-source.vue b/client-app/shared/payment/components/payment-processing-cyber-source.vue new file mode 100644 index 000000000..38a64871d --- /dev/null +++ b/client-app/shared/payment/components/payment-processing-cyber-source.vue @@ -0,0 +1,175 @@ + + + diff --git a/locales/en.json b/locales/en.json index 76d9a600b..37725fd9f 100644 --- a/locales/en.json +++ b/locales/en.json @@ -266,7 +266,8 @@ "payment_by_code": { "AuthorizeNetPaymentMethod": "Bank card (Authorize.Net)", "DefaultManualPaymentMethod": "Manual", - "SkyflowPaymentMethod": "Bank card (Skyflow)" + "SkyflowPaymentMethod": "Bank card (Skyflow)", + "CyberSourcePaymentMethod": "Bank card (CyberSource)" }, "delivery_by_id": { "FixedRate_Ground": "Fixed Rate (Ground)",