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
- issue with my identity confirmation in PayPal Payments Standard
- Buy Now button and variables return / Retour avec bouton "buy now" in PayPal Payments Standard
- Paypal checkout money not reaching paypal in REST APIs
- Webhook Data Discrepancies Between Live and Sandbox Environments in REST APIs
- Need help to integrate PayPal Checkout with Squarespace? in PayPal Upgrade Community