具有动态价格的PayPal自定义按钮

时间:2014-05-27 10:21:28

标签: forms dynamic input paypal payment

我有一个网站,提供价格动态变化的服务。例如,有单选按钮和复选框,使最终价格变化。在最后阶段,我有一个包含最终价格的隐藏输入。 我如何告诉PayPal这是收费的价格?我曾尝试在PayPal网站上关注文档但我无法找到答案。

我如何动态更改这些输入的值,同时确保它是安全的?

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="herschelgomez@xyzzyu.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" value="Hot Sauce-12 oz. Bottle">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="currency_code" value="USD">

<!-- Prompt buyers to enter their desired quantities. -->
<input type="hidden" name="undefined_quantity" value="1">

<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_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" >

</form>

任何帮助都会非常感激,我真的很坚持这一点。 谢谢, 杰夫

0 个答案:

没有答案