Reputation: 31
With the REST API and creating a payment, can you specify the payee? For example, I'm going to be storing credit cards in the vault and the user will click a button to charge all of the users that have the highest price. How do I send this money to his paypal account vs the business paypal account? Please let me know and thanks!
Upvotes: 3
Views: 1472
Reputation: 10315
As of January 3rd 2017, the REST API now has 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': '[email protected]'
},
'description':'My amazing product'
}]
}
Additional info here: https://devblog.paypal.com/setting-payee/
Upvotes: 2
Reputation: 2029
Not yet - the APIs do not support setting a Payee in the API calls. The APi caller is assumed to be the Payee. This is something that is still in works and hopefully we will have it out soon.
Upvotes: 1