本文介绍了非托管贝宝的数量立即购买,但丁币没有变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个不托管的PayPal立即购买按钮(我未选中在PayPal上保存按钮"),并使用HTML表单更改了金额,但此处未更改代码

I'm creating a PayPal buy now button which is not hosted (I've unchecked "Save button at PayPal") and changed the amount using the HTML form but it does not change here's the code

<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="encrypted" value="-----BEGIN PKCS7-----ENCRYPTION CODE HERE-----END PKCS7-----">
<input type="hidden" name="item_name" value="subscription">
<input type="hidden" name="amount" value="100.95">
<input type="image" src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

和测试页网址:单击时, http://mawk3y.net/pay.php 立即购买,您会发现该值是0,那么如何更改金额值?

and the test page url: http://mawk3y.net/pay.php when you click the buy now you will find out that the value is 0 so how can I change the amount value?

推荐答案

_s_xclick是安全(或保存)的xclick命令,您向其提交了加密(或保存)的按钮.但是您不能在加密的按钮中包含纯文本字段.您只能在一个普通按钮(即加密按钮的关键点)中执行此操作.您正在混合两者.

_s_xclick is the secure (or saved) xclick command to which you submit an encrypted (or saved) button. But you cannot have plaintext fields in an encrypted button; you can only do that in a plain button (that's the point of encrypted buttons). You are mixing the two.

要么使用加密的blob中的价格对按钮进行加密,然后提交给_s_xclick,要么将整个按钮设置为纯文本字段(不进行加密),然后提交给_xclick.

Either encrypt the button with the price inside the encrypted blob and submit to _s_xclick, or make the whole button in plain text fields (no encryption) and submit to _xclick.

这篇关于非托管贝宝的数量立即购买,但丁币没有变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 13:46