付款后来自贝宝响应的 $_POST 为空 [英] $_POST from paypal response after payment is empty
问题描述
我使用企业帐户创建了一个托管按钮,并将该代码与我的 php 应用程序集成.
I created a hosted button using a business account and integrated that code with my php application.
我使用网站支付标准"并使用商家服务"页面中提供的工具生成了立即购买按钮".
I use 'Website Payments Standard' and generated the 'Buy Now Button' using the tool provided in 'Merchant Services' page.
我正在使用 http://sandbox.paypal.com/ 对此进行测试.
I am using http://sandbox.paypal.com/ to test this.
商家资料中的配置:
- 即时付款通知 (IPN) 是已启用"和通知 URL"给.
- 自动返回已开启.
- 指定的返回 URL(与上面通知 URL 中给出的相同)
- 支付数据传输已开启
- 网站付款已关闭
- PayPal 帐户可选:已关闭
在第三个选项中创建按钮时,我给出了相同的 notify_url.
While creating the button also in the third option I gave the same notify_url.
交易成功并被重定向到我的notify_url.问题是,我的通知页面中来自贝宝响应的 $_POST 是空的.
Transaction happens successfully and gets redirected to my notify_url. The issue is, $_POST from paypal response in my notified page is empty.
我在通知页面本身的第一行打印了 $_POST.我需要添加任何其他配置吗?我有没有搞错?
I printed the $_POST in the first line of my notifier page itself. Do I need to add any other configuration? Am I making any mistake?
推荐答案
数据将转到 IPN url.将 $_POST 数据从 IPN URL 处的脚本记录到一个文件中,看看您得到了什么.我认为如果您关闭 IPN,您可能会在 notify_url 上获得数据(虽然已经有一段时间了,但不是 100% 确定).
The data is going to the IPN url. Log the $_POST data to a file from the script at the IPN URL and see what you are getting. I think if you turn off the IPN, you may then get the data on the notify_url (been a while though, not 100% sure on that part).
这篇关于付款后来自贝宝响应的 $_POST 为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!