我有一个标准的Paypal按钮,如下所示:
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="info@mywebsite.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name_1" value="My item Name 1">
<input type="hidden" name="amount_1" value="1000">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" name="item_name_2" value="My item Name 2">
<input type="hidden" name="amount_2" value="20">
<input type="hidden" name="quantity_2" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="notify_url" value="http://www.mywebsite.com/ipn-settings">
<input type="hidden" name="return" value="http://www.mywebsite.com/DEV/grazie/">
<input type="hidden" name="custom" value="24">
<!-- Display the payment button. -->
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal è il metodo rapido e sicuro per pagare e farsi pagare online.">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
点击后,我将重定向至PayPal页面,但说明和价格字段为空。仅数量被设置为1并且是只读的。该按钮有问题吗?
预先感谢您的帮助。
答案 0 :(得分:0)
我必须将cmd值更改为“ _cart”,并添加值为= 1的隐藏输入“ upload”
现在工作正常!