【发布时间】:2015-11-19 16:47:21
【问题描述】:
我的问题是关于在结帐页面上有多个捐款选项。
假设一个非营利组织有多个项目。如果用户想要一次性,它还希望为其用户提供捐赠给不同程序和不同金额的选项。
我该如何实现呢?
这是我尝试过的一个示例,但没有骰子。点击Paypal的捐赠按钮后,我得到的只是最后一个,即“Awesome General Fund”。它甚至没有显示其他选项。
<input type="hidden" name="business"
value="donations@kcparkfriends.org">
<!-- Specify a Donate button. -->
<input type="hidden" name="cmd" value="_donations">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="Friends of the Park">
<input type="hidden" name="item_number" value="Fall Cleanup Campaign">
<input type="hidden" name="currency_code" value="USD">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="General Fund">
<input type="hidden" name="item_number" value="General Fund">
<input type="hidden" name="currency_code" value="USD">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="Different General Fund">
<input type="hidden" name="item_number" value="Different General Fund">
<input type="hidden" name="currency_code" value="USD">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_name" value="Awesome General Fund">
<input type="hidden" name="item_number" value="Awesome General Fund">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
【问题讨论】:
标签: html paypal payment-gateway