Save different information for Paypal
This commit is contained in:
parent
6dda137834
commit
4753ec8474
1 changed files with 15 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ import { submitWorkOrder } from "@/helpers/heritage-integration/order-helper.js"
|
|||
import { createAdyenCheckout } from "@/helpers/adyen-helper";
|
||||
import { Dropin } from "@adyen/adyen-web/auto";
|
||||
import { applicationConfig } from "@/constants/application-config";
|
||||
import { paymentMethods } from "@/constants/payment-method-constants";
|
||||
|
||||
import "@adyen/adyen-web/styles/adyen.css";
|
||||
import { mapAdyenToFmgPaymentMethod } from "../../helpers/adyen-helper";
|
||||
|
|
@ -233,7 +234,20 @@ export default {
|
|||
false
|
||||
);
|
||||
|
||||
await baseMixin.methods.dispatchStoreAction(storeActions.SAVE_CCTOKEN, ccToken, false);
|
||||
if (paymentMethod === paymentMethods.PAYPAL) {
|
||||
await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.SAVE_PAYPAL_TOKEN,
|
||||
responseJson?.storedToken,
|
||||
false
|
||||
);
|
||||
} else {
|
||||
await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.SAVE_CCTOKEN,
|
||||
ccToken,
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.SAVE_NEXTGEN_SETTLED_AMOUNT,
|
||||
this.amountDue,
|
||||
|
|
|
|||
Loading…
Reference in a new issue