Does the PayPal Payments Pro/Express Checkout API support sending money to other receivers?

时光毁灭记忆、已成空白 提交于 2019-12-12 03:34:14

问题


Is it possible to use the "old" (Payments Pro / Express Checkout) PayPal API to send money on someone's behalf to a receiver or group of receivers? I realize this is possible with the Adaptive Payments Pay method, but it doesn't seem to be possible with the other API.


回答1:


Yes, Express Checkout supports this.

For only sending funds to multiple receivers with you as the sender
Though it's only a parallel transaction, not chained, and it may be a little less polished than Adaptive Payments. But it most certainly works.

To send money to multiple receivers with an Express Checkout transaction, simply ensure you're using PAYMENTREQUEST_* variables (e.g., PAYMENTREQUEST_0_AMT, instead of just 'AMT'), and add 'PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=yourfirst@receiver.tld.

Then for the second receiver, use;

PAYMENTREQUEST_1_SELLERPAYPALACCOUNTID=yoursecond@receiver.tld
PAYMENTREQUEST_1_AMT=9.99

For the third;

PAYMENTREQUEST_2_SELLERPAYPALACCOUNTID=yourthird@receiver.tld
PAYMENTREQUEST_2_AMT=9.99

And so and, and so forth. :-)

For someone else to multiple receivers
Or if you don't actually hold the funds and you'd wish to do it on behalf of someone else to multiple receivers, you would use the Permissions API to get permission from the sender to send money on their behalf, and the sender would then need to be approved for the MassPay API.
Given, this is not ideal as not everyone has access to the MassPay API. But it's certainly possible.
If you want to test it out; MassPay is enabled by default on all Premier and Business accounts in the PayPal Sandbox.



来源:https://stackoverflow.com/questions/12558683/does-the-paypal-payments-pro-express-checkout-api-support-sending-money-to-other

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!