Say i've had a cash out page on my website that included Paypal cash out system where user would specify his/her email. What is the new updated way to send single payment to the specified email? Which API would i need to use?
I've been researching it approximately for an hour and i can't seem to find a proper method, I've seen this:
curl -v https://api.sandbox.paypal.com/v1/payments/payouts?sync_mode=true \
-H "Content-Type: application/json" \
-H "Authorization: Bearer Access-Token" \
-d '{
"sender_batch_header":{
"sender_batch_id":"2014021801",
"email_subject":"You have a payout!",
"recipient_type":"EMAIL"
},
"items":[
{
"recipient_type":"EMAIL",
"amount":{
"value":"1.0",
"currency":"USD"
},
"note":"Thanks for your patronage!",
"sender_item_id":"201403140001",
"receiver":"anybody01@gmail.com"
}
]
}' - [from here][1]
But i can't seem to understand how to obtain sender_batch_header. I think this method is used for different purposes.
So what's the newest working method to send payments by paypal?
Thanks!