mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2268 from woocommerce/PCP-3174-fastlane-payment-method-hidden-when-switching-payment-method-just-before-ryan-flow-was-entered
AXO: Disable payment method selection during OTP interaction (3174)
This commit is contained in:
commit
ebe23386a9
1 changed files with 10 additions and 0 deletions
|
@ -571,7 +571,9 @@ class AxoManager {
|
|||
page_type: 'checkout'
|
||||
});
|
||||
|
||||
this.disableGatewaySelection();
|
||||
await this.lookupCustomerByEmail();
|
||||
this.enableGatewaySelection();
|
||||
}
|
||||
|
||||
async lookupCustomerByEmail() {
|
||||
|
@ -659,6 +661,14 @@ class AxoManager {
|
|||
}
|
||||
}
|
||||
|
||||
disableGatewaySelection() {
|
||||
this.$('.wc_payment_methods input').prop('disabled', true);
|
||||
}
|
||||
|
||||
enableGatewaySelection() {
|
||||
this.$('.wc_payment_methods input').prop('disabled', false);
|
||||
}
|
||||
|
||||
clearData() {
|
||||
this.data = {
|
||||
email: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue