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:
parent
62e1e189e7
commit
918af52380
1 changed files with 6 additions and 4 deletions
|
|
@ -45,11 +45,13 @@ export default {
|
|||
);
|
||||
}
|
||||
} else {
|
||||
const token = getQuerystringParameter(queryStrings.TOKEN);
|
||||
if (token) {
|
||||
await this.processPaypalResponse();
|
||||
} else {
|
||||
const card_expirationMonth = getQuerystringParameter(
|
||||
queryStrings.CARD_EXPIRATION_MONTH
|
||||
);
|
||||
if (card_expirationMonth) {
|
||||
await this.processCreditCardResponse();
|
||||
} else {
|
||||
await this.processPaypalResponse();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue