How do I add transaction details?
salartdesigns
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Nov-06-2019
05:08 PM
How do I add the individual items and other transaction details when I create the order?
curl -v -X POST <a href="https://api.sandbox.paypal.com/v2/checkout/orders" target="_blank">https://api.sandbox.paypal.com/v2/checkout/orders</a> \
-H "Content-Type: application/json" \
-H "Authorization: Bearer Access-Token" \
-d '{
"intent": "CAPTURE",
"purchase_units": [
{
"amount": {
"currency_code": "USD",
"value": "100.00"
}
}
]
}'
I've tried adding things like "amount_with_breakdown" from here https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown and I've been through this page up and down. I can't figure out how this stuff gets added to the curl request. Can someone please help?
0 REPLIES 0

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- [WooCommerce PayPal Payments] - Required phone country code, different than the cards country code. in PayPal Payments Standard
- Assistance Needed: Passing and Retrieving Custom Data in PayPal Webhook Payload in PayPal Payments Standard
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- Error 503 first byte timeout first byte timeout in PayPal Payments Standard
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs