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:
Niklas Gutberlet 2024-05-28 18:17:57 +02:00 committed by GitHub
commit ebe23386a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,