我试图创建一个paypal表单,将添加2个金额框在一起,并减去总金额5美元,如果购买了一个特定的日期。我已经试了好几天了,但什么也没做。以下是我拥有的代码;感谢您的帮助:)
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="ZNRGUCQ5GN4HU">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Gaslight Registration">
<input type="hidden" name="amount" value="40.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Is your Angel donation assigned? to who?">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://gaslight.endogaming.net">
<input type="hidden" name="cancel_return" value="http://gaslight.endogaming.net">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynow_LG.gif:NonHosted">
<table>
<tr><td><input type="hidden" name="on0" value="Character Name">Character Name</td></tr><tr><td><input type="text" name="on0" maxlength="200"></td></tr>
<tr><td>Angel Donation</td></tr><tr><td><input type="text" name="amount" maxlength="60"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynow_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>
发布于 2012-11-27 08:46:37
你还没有给出你想要实现的计算代码。所有这一切,您必须在服务器端语言中进行计算,如PHP或您正在使用的其他语言,然后将结果变量存储到HTML表单中的数量输入。计算部分不能是Paypal HTML表单的一部分,因此使您的计算与Paypal HTML表单分开。
https://stackoverflow.com/questions/13548307
复制相似问题