paymeoney post在android.error中的集成

时间:2014-08-19 12:16:45

标签: payment gateway payu

您好我正在app中集成payumoney,当我尝试将所有字段发布到网址时,它会显示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);
}

1 个答案:

答案 0 :(得分:2)

在将数据发布到PayUMoney时,您没有发布名为service_provider必填参数 其值始终为payu_paisa。 因此,您收到此错误。

此致 PayUMoney集成团队