Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带金额的PayPal Buy Now按钮不显示金额_Paypal - Fatal编程技术网

带金额的PayPal Buy Now按钮不显示金额

带金额的PayPal Buy Now按钮不显示金额,paypal,Paypal,我试图在我当前的PayPal Buy Now表单中添加一个金额,但它没有显示金额。是否缺少输入字段的顺序 <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="hid

我试图在我当前的PayPal Buy Now表单中添加一个
金额,但它没有显示金额。是否缺少输入字段的顺序

<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>


非常感谢。

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


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

所有这些输入字段都是隐藏的,以便与表单一起提交。如果您还想显示它们,您必须编写更多的HTML。

item\u name
是一个自定义字段,我添加在生成的按钮内容之上,但它仍然有效。我将尝试一个没有
hosted\u button\u id
的按钮,谢谢,我已经接受了这是正确答案。我解决这个问题的方法是删除
托管的\u按钮\u id
并添加
业务
,以我的商户帐户电子邮件作为值,然后将
\u s-xclick
更改为
\u xclick