No matter what I put in for the address, it says it's invalid. It is connecting to the sandbox My code is: paypal.Buttons({ style: { layout: "horizontal" }, createOrder: function(data, actions) { // This function sets up the details of the transaction, including the amount and line item details. return actions.order.create({ purchase_units: [{ description: "(Description)", amount: { value: $("#Amount").val(), "currency_code": "USD", } }], "application_context" : { "shipping_preference":"NO_SHIPPING" } }); }, onApprove: function(data, actions) { // This function captures the funds from the transaction. return actions.order.capture().then(function(details) { console.log(details); // This function shows a transaction success message to your buyer. alert(\'Transaction completed by \' + details.payer.name.given_name); }); } }).render(\'#paypal-button\'); }, true); });
... View more