贝宝“立即购买"按钮无法让我动态设置价格 [英] Paypal 'Buy Now' button not letting me dynamically set the price

查看:74
本文介绍了贝宝“立即购买"按钮无法让我动态设置价格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Paypal的立即购买"按钮,但对为什么它不起作用感到困惑(我之前已经做过).

I'm working with a "Buy Now" button from Paypal, and am stumped as to why it's not working (I've done it before).

我在Paypal上创建了一个立即购买"按钮,而未选中在Paypal上保存此按钮",因此它不在此处托管.

I created a "Buy Now" button on Paypal, and unchecked "Save this button on Paypal" - so it's not hosted there.

我有<form><input type="hidden" name="encrypted" value="...">.在加密输入之后,我也直接有一个<input type="hidden" name="amount" value="25.00">,以查看它是否可以设置价格.

I've got the <form> and the <input type="hidden" name="encrypted" value="...">. I also have an <input type="hidden" name="amount" value="25.00"> directly after that encrypted input, just to see if it will let me set the price.

没有运气-它总是将我带到用户可以输入自己价格的页面.

And no luck - it always brings me to the page where users can type in their own price.

有什么想法吗?

推荐答案

加密的按钮和输入的name = amount不能一起使用.您需要进行OR加密(包括金额)或纯文本".
如果您使用的是在线按钮创建工具,只需单击删除代码保护"即可查看纯代码,而不是加密版本.

An encrypted button and input name=amount won't work together. You'll need to OR encrypted (incl. the amount) OR 'plain text'.
If you're using the online button creation tool, simply click "Remove code protection" to view the plain code, rather than the encrypted version.

这篇关于贝宝“立即购买"按钮无法让我动态设置价格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆