mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Unselect saved credit cards selector when switching payment gateways
This commit is contained in:
parent
6149d79d19
commit
bf0d2b9b4e
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ class CheckoutBootstap {
|
|||
}
|
||||
|
||||
switchBetweenPayPalandOrderButton() {
|
||||
jQuery('#saved-credit-card').val(jQuery('#saved-credit-card option:first').val());
|
||||
|
||||
const currentPaymentMethod = jQuery(
|
||||
'input[name="payment_method"]:checked').val();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue