Paypal REST API Adaptive / Multiple Payments (change payee)
paypal, paypal-adaptive-payments, paypal-sandbox
Solution
As of January 3rd 2017, PayPal has now added the ability to set the payee to anyone you wish.
Notice the new `payee` object below:
{
'intent':'sale',
'redirect_urls':{
'return_url':'http://localhost:3000/process',
'cancel_url':'http://localhost:3000/cancel'
},
'payer':{
'payment_method':'paypal'
},
'transactions':[{
'amount':{
'total':'10',
'currency':'USD'
},
'payee':{
'email': 'payee@test.com'
},
'description':'My amazing product'
}]
}
However, there doesn't seem to be an ability to have multiple payee's.
Additional info here: https://devblog.paypal.com/setting-payee/
Problem
I've just started looking at Paypal's REST api. One thing I can't seem to see is a feature paypal call Adaptive Payments. This allows me to register my app with my developer account, but not be involved in the actual payments. e.g. my app allows my users to accept payment for their services, which they sell through my app. I have been through Paypals REST API documents. I have worked out how to complete a payment, but all the transactions get sent through to my developer paypal account. I can't find where i would change the receiver details, i.e. the seller, to allow payments to be sent to a different paypal account.