INSR-7759: More payment-method updates
- Updates to how saving/closing contact details affects other fields - Updates to loading payment method and smsOptIn from store - Wiper offer panel
This commit is contained in:
parent
f0ef62597b
commit
7b694f2fc3
1 changed files with 7 additions and 5 deletions
|
|
@ -261,7 +261,7 @@ export default {
|
||||||
cartTotal() {
|
cartTotal() {
|
||||||
return formatAmountInDollars(getCartTotal(this.mainStore.order));
|
return formatAmountInDollars(getCartTotal(this.mainStore.order));
|
||||||
},
|
},
|
||||||
isOptedInSMSPreviously() {
|
hideSMSOptIn() {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
smsOptInHeaderText() {
|
smsOptInHeaderText() {
|
||||||
|
|
@ -402,10 +402,12 @@ export default {
|
||||||
},
|
},
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
this.mainStore.savePaymentMethodChoice(this.paymentMethod);
|
this.mainStore.savePaymentMethodChoice(this.paymentMethod);
|
||||||
const requestTextUpdates = this.smsOptIn === 'Yes';
|
if (!this.hideSMSOptIn) {
|
||||||
this.mainStore.updateContactInfo({ requestTextUpdates });
|
const requestTextUpdates = this.smsOptIn === 'Yes';
|
||||||
if (requestTextUpdates) {
|
this.mainStore.updateContactInfo({ requestTextUpdates });
|
||||||
this.mainStore.updatePhoneNumbers({ alternative: this.smsPhoneNumber, service: this.smsPhoneNumber });
|
if (requestTextUpdates) {
|
||||||
|
this.mainStore.updatePhoneNumbers({ alternative: this.smsPhoneNumber, service: this.smsPhoneNumber });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (this.paymentMethod === paymentMethods.PAY_AT_TIME_OF_SERVICE) {
|
if (this.paymentMethod === paymentMethods.PAY_AT_TIME_OF_SERVICE) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue