CSR-2130 use credit card field from qs

CSR-2130 use credit card field from qs to determine payment-method
This commit is contained in:
CarlNation 2024-07-11 16:50:03 -04:00
parent 62e1e189e7
commit 918af52380

View file

@ -45,11 +45,13 @@ export default {
); );
} }
} else { } else {
const token = getQuerystringParameter(queryStrings.TOKEN); const card_expirationMonth = getQuerystringParameter(
if (token) { queryStrings.CARD_EXPIRATION_MONTH
await this.processPaypalResponse(); );
} else { if (card_expirationMonth) {
await this.processCreditCardResponse(); await this.processCreditCardResponse();
} else {
await this.processPaypalResponse();
} }
} }
}, },