简体   繁体   English

验证两个第三方之间的PayPal捐赠

[英]Verify PayPal donation between two 3rd parties

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. 我想将其与Paypal集成,而不是重新发明轮子和构建自己的捐赠系统,但是由于系统的性质,我将需要验证X捐赠是从A人发送给B人的。

Is this possible with Paypal, or am I out of luck? Paypal是否有可能,还是我不走运?

You will need to look at PayPal Instant Payment Notifications (IPN) . 您将需要查看PayPal即时付款通知(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. 在调用PayPal处理捐赠/付款的过程中,您可以为“监听器”指定URL,该URL是一个脚本,PayPal将与该脚本联系以获取有关付款的详细信息,然后可以针对PayPal验证该付款以确保它是准确/已确认/未伪造的。

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. 如果您是双方的中间人,并且只要通过您控制的表单/站点进行付款,那么您应该能够使用IPN来获取这些付款的详细信息,然后使用该数据希望。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM