你好,我在应用集成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);
}