gpt4 book ai didi

Paypal IPN : notify_url not called

转载 作者:太空宇宙 更新时间:2023-11-03 15:40:04 25 4
gpt4 key购买 nike

我正在测试一个简单的 paypal 支付脚本,它工作正常,只是它没有调用我的 notify_url,我不明白为什么。该 url 是可访问的,甚至沙盒 IPN 测试也给出了肯定的结果。更奇怪的是,在同一个域中,我还有一个运行良好的脚本。代码不相同,但使用相同的方法。

这是用于向 Paypal 发送付款的表单的 html:

form id="ppcheckout" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="pp">
<input type="hidden" value="_xclick" name="cmd">
<input id="business" type="hidden" value="xxx@gmail.com" name="business">
<input id="currency_code" type="hidden" value="EUR" name="currency_code">
<input type="hidden" value="http://www.mydomain.com/dir/ipn.php" name="notify_url">
<input id="return" type="hidden" value="http://www.mydomain.com/dir/" name="return">
<input id="cancel_return" type="hidden" value="http://www.mydomain.com/dir/" name="cancel_return">
<input type="hidden" value="1" name="amount">
<input type="hidden" value="Order from mysite" name="item_name">
<input type="hidden" value="1" name="invoice">
</form>

无法真正弄清楚哪里出了问题或遗漏了什么。有人有想法吗?

谢谢再见

最佳答案

我希望您没有在 LOCALHOST 上测试 paypal。那行不通,您需要在线测试它,在网络服务器中,您可以使用本地主机进行编码,但必须将其上传到服务器才能对其进行完整测试。

这是一个可能有助于配置 paypal 的链接 - How to Set Up PayPal Integration with PHP & MySQL

关于 Paypal IPN : notify_url not called,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12147053/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com