I have configured a donation button and calling the form post using below code and which is taking me to paypal donation screen, then I am clicking login paypal and using buyer email & password to complete the transaction . So when I login it fails with error mentioned in previous post. var form = $('<form></form>'); form.attr("action", "https://www.sandbox.paypal.com/cgi-bin/webscr"); form.attr("method", "POST"); form.attr("style", "display:none;"); var input = $("<input>") .attr("type", "hidden") .attr("name", "cmd") .val("_s-xclick"); var input2 = $("<input>") .attr("type", "hidden") .attr("name", "hosted_button_id") .val("J6NM3328R4CGL"); //var element1 = document.createElement("<input type='hidden' name='cmd' value='_s- xclick'>"); form.append(input); form.append(input2); //var element2 = document.createElement("<input type='hidden' name='hosted_button_id' value='J6NM3328R4CGL'>"); //form.add(element2); $("body").append(form); // submit form form.submit();
... View more