I have the following script:
var queryString = $("#recurringForm").serialize();
var action = "https://www.beanstream.com/scripts/recurring_billing.asp?" + queryString;
$.ajax({url : action,
type: 'GET',
success : function () {
alert("this should be called");
submitPayment();
}
});
Everything here works except for the callback. Is this because I’m posting to a domain different from my own? If so, how do I get around this.
Yes, it is because it’s a different domain. Your browser will not allow it. Instead, you should send an AJAX request to a route on your server, and execute the GET from your server.