/v2/checkout/orders how to add multiple purchase_units
MonkeyMemes
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Oct-04-2019
02:12 PM
I see in the api docs that when you create an order it may only have one purchase unit.
I've attempted to add more purchase units with the PATCH URL, but it rejects my JSON pointer as invalid
Is it possible to add multiple purchase units or should I just be wrapping all the purchased items into one purchase unit?
Thanks!
Labels:
Login to Me Too
- Labels:
-
Payments REST APIs
1 REPLY 1
SchooleyDev
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov-19-2020
01:14 PM
I had the same problem, it can only take one object but you can configure it to purchase multiple items. I found this https://stackoverflow.com/questions/56414640/paypal-checkout-javascript-with-smart-payment-buttons-c....
Should help clear things up
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
- Add Others data in SDKs
- Shipping options are not appearing in my cart through link or button. in PayPal Payments Standard
- Multiple locations to same email address result in one client only. in SDKs
- Change the button from Sandbox to Production in REST APIs
- The current address of the company in REST APIs