mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +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() {
|
switchBetweenPayPalandOrderButton() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search)
|
||||||
|
if (urlParams.has('change_payment_method')) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const currentPaymentMethod = jQuery(
|
const currentPaymentMethod = jQuery(
|
||||||
'input[name="payment_method"]:checked').val();
|
'input[name="payment_method"]:checked').val();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue