Add a custom_id in the purchase units section of create order createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: document.getElementById('amount').value
},
description: document.getElementById('description').value,
custom_id: 'my custom string',
}],
shipping_preference: 2
});
}, It will show in the Webhooks
... View more