验证两个第三方之间的PayPal捐赠 [英] Verify PayPal donation between two 3rd parties

查看:140
本文介绍了验证两个第三方之间的PayPal捐赠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展一个项目,允许用户互相捐款。

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

我想将它与Paypal集成而不是重新发明轮子和建立我自己的捐赠系统,但由于系统的性质,我需要验证从A人到B人的X美元捐赠。

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有关,还是我运气不好?

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

推荐答案

你需要看看 PayPal即时付款通知(IPN)

在致电PayPal处理捐赠/付款,您可以指定监听器的URL,这是PayPal将与付款详细信息联系的脚本,然后可以针对PayPal验证该付款以确保其准确/已确认/未伪造。

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.

如果您是双方的中间人,并且只要通过付款方式付款您控制的表单/网站,然后您应该能够使用IPN获取这些付款的详细信息,然后按照您的意愿使用该数据。

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.

这篇关于验证两个第三方之间的PayPal捐赠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆