从下拉列表中选择金额-PayPal



我为捐赠按钮使用了以下代码。当我选择下拉列表中的金额并单击捐赠时。它重定向到PayPal网站,并要求我再次输入金额,但我已经在下拉列表中选择了金额。任何帮助都将受到赞赏。谢谢。

 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <select name="amount" id="amount">
       <option value="10">10 SEK</option>
       <option value="20">20 SEK</option>
       <option value="30">30 SEK</option>
       <option value="40">40 SEK</option>
       <option value="50">50 SEK</option>
    </select>
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="xxxxxxx">
    <input type="hidden" name="currency_code" id="currency_code" value="SEK"> 
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_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>

使用托管的贝宝按钮时,您需要在按钮创建向导中配置下拉选项。如果您想自己包含所有这些,则需要使用非托管按钮。

最新更新