Created
June 2, 2020 12:19
-
-
Save mattbrailsford/d92e1e1bbfb71e27d55faefb1096da04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function() { | |
var form = document.getElementById("paymentForm"); | |
if (form.hasAttribute("onsubmit")) { | |
form.dispatchEvent(new Event('submit', { cancelable: true })); | |
} else { | |
form.submit(); | |
} | |
}, 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment