尝试将多个项目发送到贝宝购物车并遇到问题:
这(单个项目)工作正常:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="20.00" />
<input type="hidden" name="item_name" value="1st Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
这(多个项目,似乎是建议的解决方案)在购物车页面上引发错误,显示“由于卖家网站问题,PayPal 无法处理此交易。请直接联系卖家解决此问题。”:<
form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount_1" value="20.00" />
<input type="hidden" name="item_name_1" value="1st Item" />
<input type="hidden" name="amount_2" value="20.00" />
<input type="hidden" name="item_name_2" value="2nd Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
两种表格(如下)工作正常,但我试图通过一张表格和一键完成提交。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="20.00" />
<input type="hidden" name="item_name" value="1st Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="20.00" />
<input type="hidden" name="item_name" value="2nd Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
如果我使用以下内容,它可以正常工作,但它不会进入购物车页面,而是“选择付款方式”页面
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount_1" value="20.00" />
<input type="hidden" name="item_name_1" value="1st Item" />
<input type="hidden" name="amount_2" value="20.00" />
<input type="hidden" name="item_name_2" value="2nd Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
有什么建议么?