From 7164dc57f34ebf9ee4952ae06f1b86a30460087a Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:46:12 -0400 Subject: [PATCH] CSR-1390 Routing to correct payment method type --- src/layouts/payment-method/payment-method.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 731017d18..a29862882 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -317,15 +317,7 @@ export default { ); } }, - async ccdPayment() { - this.piaSetup("cc"); - }, - async paypal() { - this.piaSetup("pp"); - }, - async afterpay() { - this.piaSetup("ap"); - }, + async piaSetup(payNowType) { this.$refs.loadingModal.showModal(); @@ -333,7 +325,7 @@ export default { await this.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); await this.dispatchStoreAction( storeActions.SAVE_PAYMENT_METHOD_CHOICE, - this.paymentMethod, + payNowType, false );