我将此示例代码用于贝宝购买按钮:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="b@emeil.ir">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="item_name_1" value="beach ball">
<input type="hidden" name="amount_1" value="15">
<input type="hidden" name="item_name_2" value="towel">
<input type="hidden" name="amount_2" value="20">
<input type="submit" value="buy">
</form>
现在我想添加更多关于项目的详细信息,例如数量和大小,以显示在您在贝宝窗口的订单摘要中。
如何将此详细信息添加到代码中?
更新:我创建了这种方式来为每个项目添加数量:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="b@emeil.ir">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="item_name_1" value="beach ball">
<input type="hidden" name="amount_1" value="15">
<input type="hidden" name="quantity_1" value="3">
<input type="hidden" name="item_name_2" value="towel">
<input type="hidden" name="amount_2" value="20">
<input type="hidden" name="quantity_2" value="2">
<input type="submit" value="buy">
</form>
但现在如何添加自定义细节,如大小等......?