Submit payment ID for CSV download
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What am I doing wrong? Payment only works I cannot transfer an ID to PayPal. I need something so that I can assign the payment. The best is a parameter that is then specified in the CSV (sales download).
id -> doesn't work
invoice_id -> doesn't work
<script>
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{
id: "12345",
amount: {
value: '10.00'
},
invoice_id: 'test12345',
}],
application_context: {
shipping_preference: 'NO_SHIPPING',
},
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
PayOK();
});
},
style: {
color: 'blue'
}
}).render('#paypal-button-container');
</script>
- Labels:
-
Payments REST APIs
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Customising Paypal Checkout Button in PayPal Payments Standard
- third party direct payments towards developers in REST APIs
- Paypal Pay button generates GENERIC_ERROR in PayPal Payments Standard
- Ipn PayPal server giving 301 or 302 errors in PayPal Payments Standard
- Updating Shipping details for digital orders using API in REST APIs