/v2/checkout/orders how to add multiple purchase_units

MonkeyMemes
Contributor
Contributor

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!

Login to Me Too
1 REPLY 1

SchooleyDev
New Community Member

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

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.