Automatically focus credit card input if token is not present
This commit is contained in:
parent
2c7f521092
commit
67aaf57e19
1 changed files with 3 additions and 0 deletions
|
|
@ -70,9 +70,12 @@
|
|||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
||||
let toggleWithCard = document.querySelector('#toggle-payment-with-credit-card');
|
||||
|
||||
if (toggleWithToken) {
|
||||
toggleWithToken.click();
|
||||
} else if (toggleWithCard) {
|
||||
toggleWithCard.click();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue