我不明白..我在沙盒模式下测试了订阅按钮,它成功运行。测试业务收到付款,并且 notify_url 被调用就好了。但是,一旦我退出沙盒模式,业务仍然可以得到付款,订阅成功设置,但 notify_url 甚至没有被调用。我在实时/沙盒形式之间改变的唯一事情是:
{if $sandbox == TRUE}
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
{else}
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
{/if}
和
{if $sandbox == TRUE}
<input type="hidden" name="hosted_button_id" value="46CVBBYCFHPSY" />
{else}
<input type="hidden" name="hosted_button_id" value="VCL8LGQUWCM5E" />
{/if}
以防万一……其余的看起来像:
<input type="hidden" name="cmd" value="_s-xclick" /><input type="image" src="https://www.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online." />
<input type="hidden" name="custom" value="{$user->user_info.user_id}" />
<input type="hidden" name="return" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment.php?task=success" />
<input type="hidden" name="notify_url" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment_paypal.php?action=ipn" />
<input type="hidden" name="cancel_return" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment.php?task=cancel" />
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
为什么哦为什么这不起作用?我在这里拉头发,试图为我的客户解决这个问题。我不知道哪里出了问题。请帮助我,我应该尽快为我的客户完成这项工作。除了这 1 件事之外,我已经让其他一切都 100% 正常工作。谢谢..