Paypal Express结帐仅显示一个项目

Paypal Express结帐仅显示一个项目,paypal,Paypal,我正在尝试在我的网页中使用Paypal购物车: <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" > <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="xxx"> <input type="hidden" n

我正在尝试在我的网页中使用Paypal购物车:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">

<input type="hidden" name="business" value="xxx">
<input type="hidden" name="lc" value="US">

<input type="hidden" name="item_name" value="My Event Registration - Adult">
<input type="hidden" name="amount" value="30.00">

<input type="hidden" name="item_name_1" value="My Event Registration - Child">
<input type="hidden" name="amount_1" value="10.00">

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_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>

此代码主要是使用PayPal网站上的PayPal支付按钮助手生成的

PayPal的网站似乎只为单个项目生成代码。由于需要两个项目,我使用输入字段
item\u name\u 1
amount\u 1添加了另一个项目。

当我点击提交按钮时,我被正确地带到贝宝的购物车。但是,我在购物车中只看到一个项目。我希望在购物车里看到注册成人和注册儿童

我想知道我错过了什么。问候

隐藏字段“添加”似乎只能添加一项。你可以用“上传”来代替。然而,在这种情况下,PayPal的购物车页面不会显示出来。在我们的例子中,必须显示购物车,以便用户可以更改商品的数量。我的解决方案是在同一个网页中有两个表单,而不是一个表单。这很有效。唯一的缺点是用户必须点击两个按钮而不是一个