Paypal认购价格显示为零

时间:2015-04-05 19:49:12

标签: php paypal

我的网站上有以下表单代码,但是当我点击Paypal订阅按钮时,订阅价格在paypal结帐页面上显示$ 0.00。我的表单参数有问题吗?

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="registrations-facilitator@invent2win.com">
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="a3" value="5.55"> <!--Cost-->
<input type="hidden" name="t3" value="1"> <!--Monthly subscription-->
<input type="hidden" name="p3" value="M"> <!--Monthly subscription-->
<input type="hidden" name="src" value="1"> <!--YES, make it reoccurring-->
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="item_name" value="Economy Sandbox">
<input type="hidden" name="item_number" value="$usernum" />  
<input type="hidden" name="return" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum" />
<input type="hidden" name="cancel_return"  value="http://www.example.com/cancel" />
<input type="hidden" name="notify_url" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

1 个答案:

答案 0 :(得分:0)

这应该适合你:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="registrations-facilitator@invent2win.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="a3" value="5.55">
<input type="hidden" name="p3" value="1"> 
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="item_name" value="Economy Sandbox">
<input type="hidden" name="item_number" value="4" />  
<input type="hidden" name="return" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum" />
<input type="hidden" name="cancel_return"  value="http://www.example.com/cancel" />
<input type="hidden" name="notify_url" value="http://www.example.com/purchasecomplete&email=$email?num=$usernum">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>