Verify PayPal donation between two 3rd parties

∥☆過路亽.° 提交于 2020-01-03 04:55:05

问题


I'm working on a project where users will be allowed to send donations among each other.

I'd like to integrate it with Paypal instead of reinventing the wheel and building my own donation system, but due to the nature of the system, I will need to verify that a donation of X dollars was sent from person A to person B.

Is this possible with Paypal, or am I out of luck?


回答1:


You will need to look at PayPal Instant Payment Notifications (IPN).

Within the call to PayPal to handle the donation/payment, you can specify the URL for a "Listener", which is a script which will be contacted by PayPal with details on the payment, and can then authenticate that payment against PayPal to ensure that it is accurate/confirmed/not faked.

Within the data passed back to the Listener is the email addresses of the Payer and the Payee, along with the amount paid, fees charged, etc.

If you are acting as an intermediary to the two parties, and so long as the payment are made through the form/site you control, then you should be able to use the IPN to get details of those payments and then use that data however you wish to.



来源:https://stackoverflow.com/questions/7313346/verify-paypal-donation-between-two-3rd-parties

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