Updates for stripe form handling

This commit is contained in:
David Bomba 2025-01-21 08:20:51 +11:00
parent 2db1542029
commit e7b5b5b4e1
1 changed files with 4 additions and 0 deletions

View File

@ -1836,6 +1836,10 @@ cardElement.mount('#card-element');
const form = document.getElementById('card-form');
form.addEventListener('submit', (event) => {
event.preventDefault(); // Prevent default form submission
});
var e = document.getElementById("country");
var country_value = e.options[e.selectedIndex].value;