【问题标题】:How do i add amount to the paypal form我如何将金额添加到贝宝表格
【发布时间】:2018-10-25 06:20:03
【问题描述】:

我想从我的网站插入一个AmountPayPal form,当他们点击Submit 按钮时。

item_namequantity都是PayPal网站上的显示,但Price per item是空的?我需要添加Price per item amount field 中的任何金额?

HTML 表单

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

<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="1" name="upload">
<input type="hidden" value="xxx@gmail.com" name="business">
<input type="hidden" value="T-SHIRT" name="item_name">
<input type="hidden" value="6.99" name="amount_1">
<input type="hidden" value="1" name="quantity">
<input type="hidden" value="" name="custom">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" value="http://localhost/paypalform/my_ipn.php" name="notify_url">
<input type="hidden" 
value="http://localhost/paypalform/checkout_complete.php" 
name="return">
<input type="hidden" value="2" name="rm">
<input type="hidden" value="Return to The Store" name="cbt">
<input type="hidden" 
value="http://localhost/paypalform/paypal_cancel.php" 
name="cancel_return">
<input type="hidden" value="GB" name="lc">
<input type="hidden" value="EUR" name="currency_code">
<input type="image" name="submit" 
src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif">

</form>

Paypal 截图

我有尝试金额而不是金额_1 PayPal 显示错误消息

Things don't appear to be working at the moment. Please try again later.

【问题讨论】:

    标签: html forms paypal


    【解决方案1】:

    尝试amount 而不是amount_1

    <input type="hidden" value="6.99" name="amount">
    

    【讨论】:

    • 我试过了,但现在显示这条消息Things don't appear to be working at the moment. Please try again later.
    • 你能在日志中检查是否有任何错误。
    猜你喜欢
    • 2023-04-06
    • 2018-10-18
    • 2014-01-06
    • 2012-02-26
    • 2011-12-11
    • 2012-09-08
    • 2017-02-04
    • 1970-01-01
    • 2012-10-31
    相关资源
    最近更新 更多