From 5496b0ac30e642614cab3df69ad8627b219169b3 Mon Sep 17 00:00:00 2001 From: Chris Redelinghuys Date: Thu, 22 May 2025 08:39:04 -0400 Subject: [PATCH] CASH-580: Defect fixes and improvements --- src/layouts/payment/payment.vue | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/layouts/payment/payment.vue b/src/layouts/payment/payment.vue index 91e3c04c5..bb617ec58 100644 --- a/src/layouts/payment/payment.vue +++ b/src/layouts/payment/payment.vue @@ -64,7 +64,7 @@
-1) { + console.log(new Date() + ": Payment method afterpay selected"); + this.updatePaymentMethod(paymentMethods.AFTERPAY); + this.showSwitchPaymentMethod = false; + } + if (event.data.indexOf("creditCardSubmit") > -1) { console.log(new Date() + ": Payment method credit card selected"); this.updatePaymentMethod(paymentMethods.CREDIT_CARD); @@ -865,11 +866,6 @@ export default { } }, switchToAfterpay() { - this.dispatchStoreAction( - storeActions.SAVE_PAYMENT_METHOD_CHOICE, - paymentMethods.AFTERPAY, - false - ); const iframe = this.$refs.paymentFrame; if (iframe) { iframe.contentWindow.postMessage("afterpay", "*"); @@ -892,6 +888,12 @@ export default { shouldDisplayPiaAlert(payMethod) { return this.$route?.query?.piaErrorType === payMethod; }, + isAfterpay() { + if (this.paymentType == "ap") { + return true; + } + return false; + }, }, components: { funnelHeader, @@ -915,6 +917,10 @@ export default { background-color: red; } +.payment-method-question { + padding: 0 1.5rem; +} + .ui-block { position: fixed; top: 0;