From 4753ec8474ce3bb1e16f455fb7bfc2292d2c0cc6 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Tue, 23 Dec 2025 10:56:03 -0500 Subject: [PATCH 1/2] Save different information for Paypal --- src/layouts/payment-adyen/payment-adyen.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-adyen/payment-adyen.vue b/src/layouts/payment-adyen/payment-adyen.vue index 2d351472c..f92f0c093 100644 --- a/src/layouts/payment-adyen/payment-adyen.vue +++ b/src/layouts/payment-adyen/payment-adyen.vue @@ -42,6 +42,7 @@ import { submitWorkOrder } from "@/helpers/heritage-integration/order-helper.js" import { createAdyenCheckout } from "@/helpers/adyen-helper"; import { Dropin } from "@adyen/adyen-web/auto"; import { applicationConfig } from "@/constants/application-config"; +import { paymentMethods } from "@/constants/payment-method-constants"; import "@adyen/adyen-web/styles/adyen.css"; import { mapAdyenToFmgPaymentMethod } from "../../helpers/adyen-helper"; @@ -233,7 +234,20 @@ export default { false ); - await baseMixin.methods.dispatchStoreAction(storeActions.SAVE_CCTOKEN, ccToken, false); + if (paymentMethod === paymentMethods.PAYPAL) { + await baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_PAYPAL_TOKEN, + responseJson?.storedToken, + false + ); + } else { + await baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_CCTOKEN, + ccToken, + false + ); + } + await baseMixin.methods.dispatchStoreAction( storeActions.SAVE_NEXTGEN_SETTLED_AMOUNT, this.amountDue, From ec59d14e1b69649ea74c7d775226e63a50c1f8fe Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Tue, 23 Dec 2025 15:46:19 -0500 Subject: [PATCH 2/2] Afterpay hardcoding --- src/router/methods/route-logic/adyen-return.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/router/methods/route-logic/adyen-return.js b/src/router/methods/route-logic/adyen-return.js index 134aba151..d94de4c38 100644 --- a/src/router/methods/route-logic/adyen-return.js +++ b/src/router/methods/route-logic/adyen-return.js @@ -29,6 +29,12 @@ export async function adyenReturnBeforeEnter(to, from) { const amountDue = getAmountDue(store.getters.order.lineItems); const ccToken = generateCcToken(sessionInfo); + ccToken.authCode = "831001"; + ccToken.cardType = "VS"; + ccToken.lastFour = "1111"; + ccToken.expMonth = "03"; + ccToken.expYear = "2030"; + await baseMixin.methods.dispatchStoreAction( storeActions.SAVE_PAYMENT_METHOD_CHOICE, paymentMethod,