Zen Follower
- Join Date:
- Jul 2021
- Location:
- Fukuoka Japan
- Posts:
- 131
- Plugin Contributions:
- 0
Stripe.com payment integration module
split63:
Can't you just use a VPN and select a US server?
If the DOM is not fully loaded at the time when the payment is completed, the btn_submit button may not be fully available in the DOM, causing the click() method to not trigger. This happens when the JavaScript executes too early, before the button has been added to the page.
Can you check the following codes?
checkout.js line 48
document.getElementById('checkoutConfirmDefaultHeading').textContent = PaymentSuccess;
showMessage(PaymentSuccess);
document.getElementById("btn_submit").click();
to
const interval = setInterval(function() {
const btnSubmit = document.getElementById("btn_submit");
if (btnSubmit) {
btnSubmit.click();
clearInterval(interval);
document.getElementById('checkoutConfirmDefaultHeading').textContent = PaymentSuccess;
showMessage(PaymentSuccess);
}
}, 100); // 100ms