PayPal订阅不适用于实时模式

问题描述:

我已经为我的网站设置了PayPal订阅,有两种订阅方式。它在沙盒(测试模式)下工作正常,但不在实时模式下工作。当用户通过输入paypal电子邮件和密码继续通过paypal付款时,显示“您用来进入Pay​​Pal系统的链接无效,请检查链接并重试”。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="[email protected]">'; 

     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>"; 

任何人有任何想法什么问题.. ????请帮助

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

+0

thanx回复...现在的问题是理清... thnx再 – gss 2013-05-13 14:07:10

+0

嗨,我有同样的问题,你能告诉我你是如何解决它 – 2016-07-04 10:30:40