Marketplace requires buyer to pay multiple sellers

moodlepoodle
Contributor
Contributor

Hello

 

Can somebody please help explain the process on how to take a payment from a buyer and pay multiple sellers on a marketplace platform? I can see adaptive payments is no longer available and that we should now use commerce platform. (https://developer.paypal.com/docs/commerce-platform/)

 

I've been trying for hours with the API to clearly understand process on what is required. So far I've managed to get the token, create an order... That's it. The order does not allow for multiple purchase units, how can I pay multiple sellers at once?

 

Thanks in advance.

Login to Me Too
1 REPLY 1

webdeb7
Contributor
Contributor

Same here:

 

https://developer.paypal.com/docs/api/orders/v2/#orders_create

The description says:

Creates an order. Supports orders with only one purchase unit.

 

But in the body documentation it says: 

https://developer.paypal.com/docs/api/orders/v2/#orders-create-request-body

purchase_units 
An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. Each purchase unit represents either a full or partial order that the payer intends to purchase from the payee.
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.