【发布时间】:2014-10-12 13:00:09
【问题描述】:
您好,我正在将 payumoney 集成到应用程序中,当我尝试将所有字段发布到 URL 时,它显示 Sorry, some problem occurred。
下面我粘贴我的代码。
gen Hash();
String post Data = "hash=hash&key=key&txnid=txnid&amount=amount&product info=product info&first name=first name&email=email&contact=contact&SALT=SALT&SURL=SURL&FURL= FURL";
web View = (Web View) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.postUrl(url, EncodingUtils.getBytes(postData, "base64"));
public void genHash() {
try {
hash = sha512.sha512(key + "|" + txnid + "|" + amount + "|"
+ productinfo + "|" + firstname + "|" + email
+ "|||||||||||" + SALT);
}
catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
System.out.println(hash);
}
【问题讨论】:
-
嗨 Akshat,我可以知道在 payumoney 集成套件中您选择了哪个套件吗?是 JSP 吗?提前致谢
-
嗨,Akshat,我已经在一个单独的线程中提出了这个问题,stackoverflow.com/questions/26575260/… 请重播,我准备好给予赏金或任何代价,请帮助我解决这个问题,我从 4 天开始就被困住了。
-
嗨,Akshat,您能提前发布 sha512.sha512 方法吗?