【问题标题】:paypal subscription not working on live mode贝宝订阅在实时模式下不起作用
【发布时间】:2013-05-06 13:39:18
【问题描述】:

我已经为我的网站设置了 paypal 订阅,有两种订阅类型。它在沙盒(测试模式)下工作正常,但在实时模式下不行。当用户通过输入贝宝邮箱和密码继续通过贝宝付款时,它显示“您用于进入贝宝系统的链接无效。请查看链接并重试”。

我使用的代码是

echo '<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
        echo '<input type="hidden" name="cmd" value="_xclick-subscriptions">';
         echo '<input type="hidden" name="business" value="sales@example.com">';

        echo '<input type="hidden" name="currency_code" value="USD">';
        echo '<input type="hidden" name="no_shipping" value="1">';
        echo '<input type="hidden" name="item_name" value=" '.$ite_name.'" />';
        echo '<input type="hidden" name="item_number" value="'.time().'" />';
        echo '<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="Make payments with PayPal - its fast, free and secure!">';
        echo '<input type="hidden" name="a3" value="'.$sub[1].'">';
        echo '<input type="hidden" name="p3" value="1">';
        echo '<input type="hidden" name="t3" value="'.$sub[0].'">';
        echo '<input type="hidden" name="src" value="1">';
        echo '<input type="hidden" name="sra" value="1">';
        echo '<input type="hidden" name="upload" value="1" />';
        echo '<input type="hidden" name="custom" value="1000000000'.$insert_id.'">';
        echo '<input type="hidden" name="return" value="https://example.com/manage/PNS-Manager/register.php?l=s" />';
        echo '<input type="hidden" name="rm" value="2" />';
        echo '<input type="hidden" name="cancel_return" value="https://example.com/manage/PNS-Manager/cancel.php" />';
        echo '<input type="hidden" name="notify_url" value="http://example.com/manage/PNS-Manager/IPN.php" />';
        echo '</form>';
        echo "<script> document.forms[0].submit();</script>";

任何人都知道这是什么问题..????请帮忙

【问题讨论】:

    标签: paypal-subscriptions


    【解决方案1】:

    您能否提供您为这些值传递的字符串,以便我们可以尝试对其进行测试并查看导致错误的原因。您为变量设置的值之一可能存在问题。此外,在切换到实时帐户时,请确保将业务变量从您的沙盒帐户更改为您的实时帐户。

    【讨论】:

    • 感谢您的回复...现在问题已解决...再次感谢
    • 您好,我也有同样的问题,您能告诉我您是如何解决的吗
    猜你喜欢
    • 2019-08-04
    • 2016-04-03
    • 2011-07-17
    • 2012-04-26
    • 2016-07-08
    • 2020-08-29
    相关资源
    最近更新 更多