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 );