mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Do not switch place order button on change payment method page
This commit is contained in:
parent
4926a82fca
commit
ab5dc13ad7
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ class PayNowBootstrap {
|
|||
}
|
||||
|
||||
switchBetweenPayPalandOrderButton() {
|
||||
const urlParams = new URLSearchParams(window.location.search)
|
||||
if (urlParams.has('change_payment_method')) {
|
||||
return
|
||||
}
|
||||
|
||||
const currentPaymentMethod = jQuery(
|
||||
'input[name="payment_method"]:checked').val();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue