Hello i'm trying to make the user visit a Paypal url in the background, but it doesnt seem to work. This is the code
$.ajax({
crossDomain: true,
type: "GET",
url: "http://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=B47NFTANZL5S6",
succus: function() {
alert('succus');
},
error: function() {
alert('error');
},
complete: function() {
alert('Complete');
}
});
You can click this link Paypal link and it will add a item in the checkout. But cant make it work via a ajax request.