[英]how to setup integration with CashU in asp.net?
i want to add CashU Payment to my website when i setup the service the website generate to me an html form ` https://sandbox.cashu.com/cgi-bin/pcashu.cgi' method='post'> 我想在我设置服务时向网站添加CashU Payment,该网站向我生成html格式的https://sandbox.cashu.com/cgi-bin/pcashu.cgi'method ='post'>
<input type='hidden' name='merchant_id' value='xxxxxxx'/>
<input type='hidden' name='token' value='xxxxxx'/>
<input type='hidden' name='display_text' value='test service name'/>
<input type='hidden' name='currency' value='SAR'/>
<input type='hidden' name='amount' value='1'/>
<input type='hidden' name='language' value='en'/>
<input type='hidden' name='session_id' value=''/>
<input type='hidden' name='txt1' value='test service text'/>
<input type='hidden' name='txt2' value=''/>
<input type='hidden' name='txt3' value=''/>
<input type='hidden' name='txt4' value=''/>
<input type='hidden' name='txt5' value=''/>
<input type='submit' name='but' value='Buy Now'/> </form`
when i write this in html page it works fine but i added in aspx page cause i want to change amount in page load 当我在html页面中编写此文件时,它工作正常,但我在aspx页面中添加了原因,因为我想更改页面加载量
Response.Write("<SCRIPT LANGUAGE='JavaScript'>function myFunction(){ document.getElementById('o').value='"+ 50 +"';}</SCRIPT>");
and change 并改变
<input type='hidden' name='amount' value='1'/>
<input type='submit' name='but' value='Buy Now'/>
to 至
<input id="o" type='hidden' name='amount' value='1'/>
<input type='submit' name='but' value='Buy Now' onclick='myFunction()'/>
i faced this screen how come this Error Image 我面对此屏幕怎么会出现此错误图片
how can i solve this problem i need help please . 请问我该如何解决这个问题。
if you change the amount then you need to recalculate the token. 如果您更改金额,则需要重新计算令牌。 the token should be calculated like this ' MD5(“merchantid:amount:aed:encryption key”) '
令牌应像这样'MD5(“ merchantid:amount:aed:encryption key”)'
Merchant id and currency must be in lowercase 商家ID和货币必须为小写
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.