payumoney post integration in android.error

半腔热情 提交于 2020-01-05 04:22:31

问题


Hello I am integrating payumoney in app and when i'm trying to post all fields to URL it says that Sorry, some problem occurred.

Below i am pasting my code.

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);
}

回答1:


While posting the data to PayUMoney you are not posting a mandatory parameter named service_provider whose value is always payu_paisa. So for this reason you are getting this error.

Regards, PayUMoney Integration Team



来源:https://stackoverflow.com/questions/25383216/payumoney-post-integration-in-android-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!