简体   繁体   English

Paypal定期付款工作在沙盒中,但不能实时进行

[英]paypal recurring payment work in sandbox but not in live

i am testing PayPal recurring payment in my web the same code work for me in sandbox but when i change the url to make them live i get this error 我正在网络中测试PayPal定期付款,相同的代码在沙箱中对我有用,但是当我更改URL使它们生效时,出现此错误

Invalid Regular period. You must specify valid values for the A3, P3 and T3 parameters for a subscription. 

this is the code that i am testing 这是我正在测试的代码

<form name="frm_payment_method" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="mymail@gmail.com">
<input type="hidden" name="notify_url" value="http://www.domain.com/ipn.php">
<input type="hidden" name="cancel_return" value="http://www.domain.com/cancel.html">
<input type="hidden" name="return" value="http://www.domain.com">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="lc" value="">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="page_style" value="paypal">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="item_name" value="Monthly Subscription">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="src" value="1">
<input type="hidden" name="srt" value="0">
<input type="hidden" name="a1" value="80">
<input type="hidden" name="p1" value="12">
<input type="hidden" name="t1" value="M">
</form>

when i try this in sandbox url it work 当我在沙盒网址中尝试此功能时

https://www.sandbox.paypal.com/cgi-bin/webscr

but when i make them live 但是当我让他们活着

https://www.paypal.com/cgi-bin/webscr

i got this error 我得到这个错误

Invalid Regular period. 无效的定期期限。 You must specify valid values for the A3, P3 and T3 parameters for a subscription. 您必须为预订的A3,P3和T3参数指定有效值。

You missed a line below. 您错过了以下一行。

Also make sure the value of 'business' is the email address of your Live PP acct instead of Sandbox PP acct. 还要确保“业务”的值是Live PP帐户而不是Sandbox PP帐户的电子邮件地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM