我正在测试一个简单的PayPal支付脚本,除了它没有调用我的notify_url并且我不明白为什么之外,一切正常。该URL可达,即使在沙盒IPN测试中也会得到积极的结果。更奇怪的是,在同一域名下,我有另一个脚本表现得非常好。代码并不完全相同,但使用了相同的方法。
这是用于向Paypal发送付款的表单的HTML。
这是用于向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>
我真的想不出哪里出了问题或缺失了什么。有人有主意吗?
谢谢 再见