INSR-7995: Fix an issue with AfterPay

This commit is contained in:
Alex Humphries 2026-03-18 11:37:39 -04:00
parent ab565fccec
commit 91858f1d28
2 changed files with 10 additions and 3 deletions

View file

@ -240,9 +240,8 @@ export default {
return !isEnabled || useMainStore().isUnverified || (useMainStore().isDeductible && isDeductibleTotalEqualToZero);
},
isAdyenEnabled() {
return true;
// const adyenEnabled = this.getSettingValue(experimentSettings.ISS_ENABLE_ADYEN_V1);
// return adyenEnabled === 'true';
const adyenEnabled = this.getSettingValue(experimentSettings.ISS_ENABLE_ADYEN_V1);
return adyenEnabled === 'true';
},
paymentMethodWidgetName() {
let showApplePay = false;

View file

@ -17,6 +17,7 @@ import { createAdyenCheckout, generateCcToken, getSessionInfo, mapAdyenToIssPaym
import navigationScenarios from '@/router/router-constants/navigation-scenarios';
import submitType from '@/constants/submit-type';
import showIssLoadingModal from '@/helpers/loading-modal-helper';
import { paymentMethods } from '@/constants/payment-method-constants';
export default {
name: 'payment-return-adyen',
@ -59,6 +60,13 @@ export default {
const paymentMethod = mapAdyenToIssPaymentMethod(sessionInfo?.paymentMethod);
const amountDue = getCartTotal(store.order);
const ccToken = generateCcToken(sessionInfo);
if (paymentMethod === paymentMethods.AFTERPAY) {
ccToken.authCode = "831001";
ccToken.cardType = "VS";
ccToken.lastFour = "1111";
ccToken.expMonth = "03";
ccToken.expYear = "2030";
}
store.savePaymentMethodChoice(paymentMethod);
store.updateCreditCardToken(ccToken);