How do I add transaction details?

salartdesigns
Contributor
Contributor

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?

Login to Me Too
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.