PHP verify PayPal Donation(PHP验证贝宝捐赠)
问题描述
我如何验证贝宝捐赠?
在用户面板中,我有一个捐赠按钮.一旦有人真的捐赠了,我就想为他做点什么.但我不知道如何检查用户是否真的捐赠了或只是点击了捐赠按钮.
In the user panel I have a donate button. And once someone actually donates I want to do something to him. But I do not know how to check if the user actually donated or just clicked the donate button.
推荐答案
查看 Paypal 的 IPN (即时付款通知)
Look in to Paypal's IPN (Instant Payment Notification)
当有人向您的 Paypal 帐户付款或捐款时,Paypal 会向您的网络服务器发送一封包含所有付款详细信息的邮件.然后,您可以向 Paypal 发送消息以确保付款是真实的...
When someone makes a payment or donation to your Paypal account, Paypal will send a post message to your web server with all the payment details. You can then send a message back to Paypal to make sure that the payment was real...
甚至还有一些代码示例 在 paypal 的网站上.包括一个用于 PHP 的.
There are even some code examples on paypal's website. Including one for PHP.
请注意,您必须先启用 IPN 并在您的贝宝帐户中定义回调 URL,然后才能开始使用 IPN.
Note you have to enable IPN and define the call back URL in your paypal account before you can start using IPN.
这篇关于PHP验证贝宝捐赠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP验证贝宝捐赠
基础教程推荐
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何替换eregi() 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
