我正在尝试执行以下操作,以便用户选择其定期订阅计划。
在尝试提交此表单时,我在PayPal中一直收到以下错误:
'无效的常规期间。您必须为订阅指定A3,P3和T3参数的有效值。'
我在表格中指定了A3,P3和T3参数,所以我不确定发生了什么。有人可以帮忙吗?提前谢谢!
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<table>
<tr><td>Frequency</td></tr><tr><td>
<select name="a3">
<option value="438.00">Every 2 weeks: $438.00 USD - monthly</option>
<option value="219.00">Every 4 weeks: $219.00 USD - monthly</option>
<option value="146.00">Every 6 weeks: $146.00 USD - monthly</option>
<option value="109.50">Every 8 weeks: $109.50 USD - monthly</option>
</select> </td></tr>
<tr><td>Coffee Selection</td></tr><tr><td>
<select name="item_name">
<option value="Ethiopian Ground Subscription">Ethiopian Ground</option>
<option value="Colombian Ground Subscription">Colombian Ground</option>
<option value="Colombian Whole Bean Subscription">Colombian Whole Bean</option>
<option value="Guatemalan Ground Subscription">Guatemalan Ground</option>
<option value="Guatemalan Whole Bean Subscription">Guatemalan Whole Bean</option>
<option value="Decaf Ground Subscription">Decaf Ground</option>
<option value="Decaf Whole Bean Subscription">Decaf Whole Bean</option>
</select> </td></tr>
</table>
<input type="hidden" name="business" value="info@lifesongfororphans.org">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="t3" value="M"> <!-- billing cycle unit=month -->
<input type="hidden" name="p3" value="1"> <!-- billing cycle length -->
<input type="hidden" name="src" value="1"> <!-- recurring=yes -->
<input type="hidden" name="sra" value="1"> <!-- reattempt=yes -->
<input type="hidden" name="return" value="http://www.gobena.org">
<input type="hidden" name="cancel_return" value="http://www.gobena.org">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_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>
答案 0 :(得分:2)
在代码中用大写字母写下它们,看它是否有效。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<table>
<tr><td>Frequency</td></tr><tr><td>
<select name="A3">
<option value="438.00">Every 2 weeks: $438.00 USD - monthly</option>
<option value="219.00">Every 4 weeks: $219.00 USD - monthly</option>
<option value="146.00">Every 6 weeks: $146.00 USD - monthly</option>
<option value="109.50">Every 8 weeks: $109.50 USD - monthly</option>
</select> </td></tr>
<tr><td>Coffee Selection</td></tr><tr><td>
<select name="item_name">
<option value="Ethiopian Ground Subscription">Ethiopian Ground</option>
<option value="Colombian Ground Subscription">Colombian Ground</option>
<option value="Colombian Whole Bean Subscription">Colombian Whole Bean</option>
<option value="Guatemalan Ground Subscription">Guatemalan Ground</option>
<option value="Guatemalan Whole Bean Subscription">Guatemalan Whole Bean</option>
<option value="Decaf Ground Subscription">Decaf Ground</option>
<option value="Decaf Whole Bean Subscription">Decaf Whole Bean</option>
</select> </td></tr>
</table>
<input type="hidden" name="business" value="info@lifesongfororphans.org">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="T3" value="M"> <!-- billing cycle unit=month -->
<input type="hidden" name="P3" value="1"> <!-- billing cycle length -->
<input type="hidden" name="src" value="1"> <!-- recurring=yes -->
<input type="hidden" name="sra" value="1"> <!-- reattempt=yes -->
<input type="hidden" name="return" value="http://www.gobena.org">
<input type="hidden" name="cancel_return" value="http://www.gobena.org">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_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)
此代码最终正常运行。我遇到了一个缓存问题,这就是我一直收到错误的原因。 :)