支付成功后PayPal POST数据

发布于 2024-11-07 12:24:03 字数 131 浏览 0 评论 0原文

我正在尝试制作一个 PHP 应用程序,它将与 MySQL 交互。 我已经有一个获取 POST 数据的页面,在获取数据后,它会向用户提供“信用”。 订单成功后 PayPal 按钮可以向我发送发布数据吗? 或者还有其他办法吗? (很可能更简单、更安全)

I am trying to make an PHP app, that will interact with MySQL.
I already have an page that gets POST data, and after it gets it, it gives "credit" to user.
Can PayPal button after successful order send me an post data?
or is there any other way? (most likely simplier and more secure)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

じ违心 2024-11-14 12:24:03

是的,请查看 PayPal 即时付款通知 (IPN) - https://www.paypal.com/ipn/
每当发起交易时,这将强制向您发送交易数据的 POST。如果您当前使用网站付款标准(基于 HTML 的按钮),则只需添加

<input type="hidden" name="notify_url" value="http://full-URL-to-the-script-you-set-up-for-IPN">

Youll need to take all POST data you receive from PayPal, Append cmd=_notify-validate 并将其发送回 https://www.paypal.com/cgi-bin/webscr (或 https://www.sandbox.paypal.com/cgi-bin/webscr 用于沙箱) 以验证 IPN 消息。
根据此结果,您将收到无效或已验证的响应。
INVALID 可能意味着 IPN POST 并非源自 PayPal,而 VERIFIED 意味着 IPN POST 经验证确实来自 PayPal。

Yes, have a look at PayPal Instant Payment Notification (IPN) - https://www.paypal.com/ipn/
This will force a POST of transactional data to be sent to you whenever a transaction has been initiated. If you currently use Website Payments Standard (HTML based buttons), you can simply add

<input type="hidden" name="notify_url" value="http://full-URL-to-the-script-you-set-up-for-IPN">

You'll need to take all POST data you received from PayPal, append cmd=_notify-validate and send it back to https://www.paypal.com/cgi-bin/webscr (or https://www.sandbox.paypal.com/cgi-bin/webscr for Sandbox) in order to validate the IPN message.
Depending on this result, you'll get back an INVALID or VERIFIED response.
INVALID may mean the IPN POST didn't originate from PayPal, whereas VERIFIED means the IPN POST was verified as indeed coming from PayPal.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文