Hmm, I have read this page, but am unclear on what I need to do? Orders made with a non-sandbox client-id show shipping & goods related stuff. Current code: <script
src="https://www.paypal.com/sdk/js?components=buttons&disable-funding=paylater,credit&client-id=AaQ-q0S7Dv1LKUHTTjvlqF8rEZaMpObVI-jzGxsZF9vyQpT7p8lGwWZ5e-AL_ZeQfl-CaP-wW9Cl-xrI">
</script>
<div id="paypal-button-container"></div>
<script>
window.addEventListener('load', (event) => {
{
function submit(order, paypalDetails)
{ /*snip */ }
window.details = JSON.parse(document.getElementById("fullorder").value);
document.getElementById("total").textContent = "Total: $" + details.cost;
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
reference_id: "92PMYBWhQP",
custom_id: "92PMYBWhQP",
soft_descriptor: "Adventure Race",
invoice_id: "92PMYBWhQP",
amount: {
value: details.cost + ".00",
currency_code: "USD",
},
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(pdetails) {
submit(data.orderID, JSON.stringify({data: data, details: pdetails}));
});
}
}).render('#paypal-button-container');
}
});
</script>
... View more