Skip to content

Instantly share code, notes, and snippets.

@mattbrailsford
Created June 2, 2020 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbrailsford/d92e1e1bbfb71e27d55faefb1096da04 to your computer and use it in GitHub Desktop.
Save mattbrailsford/d92e1e1bbfb71e27d55faefb1096da04 to your computer and use it in GitHub Desktop.
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