Hey
Below is some sample code taken from PayPal.com (mass payment). I'm unsure if I should use mass payment like this (put text in a file) or if I should use PayPal API methods to generate this output
Also, this I assume is PHP code: (correct me if I'm wrong)
curl -v -X POST https://api.sandbox.paypal.com/v1/payments/payouts \
Not sure what is happening here but is that the content of the file is posted to https://api.sandbox.paypal.com/v1/payments/payouts \ ??
curl -v -X POST https://api.sandbox.paypal.com/v1/payments/payouts \
-H "Content-Type: application/json" \
-H "Authorization: Bearer Access-Token" \
-d '{
"sender_batch_header": {
"sender_batch_id": "2014021801",
"email_subject": "You have a payout!",
"email_message": "You have received a payout! Thanks for using our service!"
},
rest of sample code removed
If you have some sample code on how to implement mass payment, I would be happy if you could share share it with me. Just a little bit whould be great. I'm banging my head against the wall while reading the PayPal doc and trying to make sample code work.....
Below is some sample code taken from PayPal.com (mass payment). I'm unsure if I should use mass payment like this (put text in a file) or if I should use PayPal API methods to generate this output
Also, this I assume is PHP code: (correct me if I'm wrong)
curl -v -X POST https://api.sandbox.paypal.com/v1/payments/payouts \
Not sure what is happening here but is that the content of the file is posted to https://api.sandbox.paypal.com/v1/payments/payouts \ ??
curl -v -X POST https://api.sandbox.paypal.com/v1/payments/payouts \
-H "Content-Type: application/json" \
-H "Authorization: Bearer Access-Token" \
-d '{
"sender_batch_header": {
"sender_batch_id": "2014021801",
"email_subject": "You have a payout!",
"email_message": "You have received a payout! Thanks for using our service!"
},
rest of sample code removed
If you have some sample code on how to implement mass payment, I would be happy if you could share share it with me. Just a little bit whould be great. I'm banging my head against the wall while reading the PayPal doc and trying to make sample code work.....