
[英]Paypal subscription with lower first payment amount, discount, with Rest api?
[英]Paypal amount calculations and discount :(
我正在尝试创建一个贝宝表单,该表单将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>
您尚未提供进行计算所需的代码。 所有这些都需要使用服务器端语言(例如PHP)或您正在使用的其他语言进行计算,然后将结果变量存储为HTML格式的输入量。 计算部分不能成为Paypal HTML表单的一部分,因此请使您的计算与Paypal HTML表单分开。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.