$(document).ready(function() {
$('#payform').on('submit', e => {
let form = $('#payform');
e.preventDefault();
let url = form.attr('action');
let data = form.serialize();
$.post(url, data, response => {
console.log(response);
})
return false;
})
});