PayPal立即购买按钮,金额不显示金额

时间:2014-05-02 03:39:53

标签: paypal

我正在尝试将amount添加到我当前的PayPal“立即购买”表单中,但它并未显示金额。是否存在我缺少的输入字段的排序?

<form class="right" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    <input type="hidden" name="cmd" value="_s-xclick"/>
    <input type="hidden" name="item_name" value="${sessionScope.paypalDescription}"/>
    <input type="hidden" name="hosted_button_id" value="YNRM27K9B4JGW"/>
    <input type="hidden" name="return" value="http://www.keeboi-gwapo.com/thankyou.d0"/>
    <input type="hidden" name="amount" value="500.00" />
    <input type="hidden" name="currency_code" value="USD"/>
    <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>
</form>

非常感谢。

2 个答案:

答案 0 :(得分:1)

您正在使用托管按钮。因此,您需要登录您的PayPal帐户,进入您的按钮管理器,并相应地编辑按钮。

您不能像使用托管按钮时那样向按钮代码添加字段。托管按钮的部分好处是它隐藏了那些可能在触发PayPal付款之前尝试调整值的人的参数。

答案 1 :(得分:0)

隐藏所有这些输入字段,以便随表单提交。如果您想要显示它们,则必须编写更多HTML。

相关问题