1

我正在使用以下贝宝代码,但一旦网站将页面重定向到贝宝,金额仍不会以贝宝形式显示。

 `<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXX">
<input type="hidden" name="amount_1" value="200">
<input type="image" style="width: 70px !important; padding: 0px !important;"     src="http://www.merlioncricket.com/Login/static/images/payment.png" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>`

请告诉我,为什么金额没有显示。

谢谢,角斗士

4

2 回答 2

4

最后我找到了答案,也许它对其他人有用,每当您创建贝宝按钮时,请确保在步骤 2 中未单击“在 PayPal 保存按钮”,然后在创建按钮后删除代码保护,然后选择代码& 复制贝宝生成的代码。

它将解决问题。

谢谢....

于 2013-04-04T07:39:27.233 回答
1

使用托管按钮时,您不能传递金额。托管按钮可防止有人直接修改代码并传递不同的数量。如果您想要不同的金额,则需要登录您的帐户并编辑托管按钮。如果要动态填充金额,则需要创建一个非托管明文按钮。

于 2013-04-03T13:01:09.417 回答