4

我不明白..我在沙盒模式下测试了订阅按钮,它成功运行。测试业务收到付款,并且 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% 正常工作。谢谢..

4

3 回答 3

2

我在 PayPal 论坛上询问过,发现出了什么问题。显然,对于订阅,企业帐户必须在其个人资料下手动输入其 IPN 设置。

点击这里获取来源

于 2011-01-12T05:11:09.440 回答
0

您需要在生产帐户上激活 IPN:

https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/

单击页面右上角的配置文件图标(配置文件菜单)。从业务资料菜单中,选择资料和设置,然后选择我的销售工具。...

单击接收 IPN 消息(已启用)以启用您的侦听器。

于 2016-04-19T14:44:45.490 回答
-6

我认为这是这条线的微小变化。

 <input type="hidden" name="notify_url" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment_paypal.php?action=paypal" />

action=ipn" 应该替换为 action=paypal"。

试试看,这可能会很好..

谢谢。

于 2011-04-20T05:25:38.950 回答