Paypal在提交此表单时显示以下错误: 您用于进入PayPal系统的链接包含格式不正确的项目金额。
我尝试了所有可能的方法,但无法解决它。请帮助我。
我该如何解决这个问题?
<form action="
https://www.sandbox.paypal.com/cgi-bin/webscr
" method="post" name="psubmit" id="psubmit">
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="page_style" value="" />
<input type="hidden" name="custom" value="_25_259_0_58__" />
<input type="hidden" name="business" value="neo@ibacs.co.uk" />
<input type="hidden" name="return" value="http://etakeout.co.uk/orders/wait" />
<input type="hidden" name="cancel_return" value="http://etakeout.co.uk/" />
<input type="hidden" name="shopping_url" value="http://etakeout.co.uk/" />
<input type="hidden" name="notify_url" value="http://etakeout.co.uk/orders/ipn_handler" />
<input type="hidden" name="redirect_cmd" value="_xclick" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="bn" value="inetfoods" />
<input type="hidden" name="mrb" value="R-6C7952342H795591R" />
<input type="hidden" name="pal" value="9E82WJBKKGPLQ" />
<input type="hidden" name="first_name" value="asf" />
<input type="hidden" name="last_name" value="asfas" />
<input type="hidden" name="address1" value="asdfasf" />
<input type="hidden" name="city" value="Alcester" />
<input type="hidden" name="state" value="" />
<input type="hidden" name="zip" value="CF 245" />
<input type="hidden" name="country" value="GB" />
<input type="hidden" name="email" value="neo@ibacs.co.uk" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="handling_cart" value="0" />
<input type="hidden" name="discount_amount_cart" value="0.00" />
<input type="hidden" name="item_name_1" value="Starter - New Base Item español - Chicken==1.5 pizza" />
<input type="hidden" name="quantity_1" value="2" />
<input type="hidden" name="amount_1" value="5.985" />
<input type="hidden" name="item_name_2" value="Delivery Cost" />
<input type="hidden" name="quantity_2" value="1" />
<input type="hidden" name="amount_2" value="4.00" />
<input type="hidden" name="item_name_3" value="CC Fee" />
<input type="hidden" name="quantity_3" value="1" />
<input type="hidden" name="amount_3" value="7.00" />
</form>
答案 0 :(得分:6)
你有
<input type="hidden" name="amount_1" value="5.985" />
应该是<input type="hidden" name="amount_1" value="5.98" />
因为PayPal最多接受2位小数。
希望这会有所帮助。
答案 1 :(得分:2)
您正在发送&#39; 5.985&#39;英镑。这不是一个正确的金额 将其更改为&#39; 5.98&#39;然后再试一次。