diff --git a/src/layouts/payment-pia-return/payment-pia-return.vue b/src/layouts/payment-pia-return/payment-pia-return.vue index ddfab9d7f..dbea6493d 100644 --- a/src/layouts/payment-pia-return/payment-pia-return.vue +++ b/src/layouts/payment-pia-return/payment-pia-return.vue @@ -72,9 +72,13 @@ export default { async processPaypalResponse() { const token = getQuerystringParameter(queryStrings.TOKEN); const payerId = getQuerystringParameter(queryStrings.PAYERID); - + baseMixin.methods.dispatchStoreAction(storeActions.SAVE_PAYPAL_TOKEN, token, false); - baseMixin.methods.dispatchStoreAction(storeActions.SAVE_NEXTGEN_SETTLED_AMOUNT, this.getAmountDue(), false); + baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_NEXTGEN_SETTLED_AMOUNT, + this.getAmountDue(), + false + ); await this.saveAndSubmitWorkOrder(); }, @@ -126,7 +130,11 @@ export default { }; baseMixin.methods.dispatchStoreAction(storeActions.SAVE_CCTOKEN, ccToken, false); - baseMixin.methods.dispatchStoreAction(storeActions.SAVE_NEXTGEN_SETTLED_AMOUNT, this.getAmountDue(), false); + baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_NEXTGEN_SETTLED_AMOUNT, + this.getAmountDue(), + false + ); await this.saveAndSubmitWorkOrder(); } }, diff --git a/src/store/index.js b/src/store/index.js index 4c5e024c9..e550655ff 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1870,7 +1870,7 @@ export const actions = { saveNextGenSettledAmount(context, nextGenSettledAmount) { context.commit(storeMutations.UPDATE_NEXTGEN_SETTLED_AMOUNT, nextGenSettledAmount); }, - + savePaypalToken(context, ppToken) { context.commit(storeMutations.UPDATE_PAYPAL_TOKEN, ppToken); },