Do not switch place order button on change payment method page

This commit is contained in:
dinamiko 2021-04-21 16:54:24 +02:00
parent 4926a82fca
commit ab5dc13ad7

View file

@ -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();