Merge pull request #829 from Safelite/feature/digital/SSR-1470

SSR-1470 Refactor Payment Method
This commit is contained in:
Josh Dassinger 2024-08-28 13:54:27 -05:00 committed by GitHub
commit 2e8abbc3c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1310,9 +1310,7 @@ export const useMainStore = defineStore({
payment: {
parentAccountNumber: this.issConfig.parentAccountNumber,
paypalToken: payment.paypalToken,
isPaypal: payment.payInAdvanceType === paymentMethods.PAYPAL,
isCreditCard: payment.payInAdvanceType === paymentMethods.CREDIT_CARD,
isAfterpay: payment.payInAdvanceType === paymentMethods.AFTERPAY,
paymentMethod: payment.payInAdvanceType,
nextGenSettledAmount: payment.nextGenSettledAmount,
CCToken: payment.creditCardToken
},