payumoney post集成在android.error中 [英] payumoney post integration in android.error

查看:125
本文介绍了payumoney post集成在android.error中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在将payumoney集成到应用程序中,当我尝试将所有字段发布到URL时,它表示Sorry, some problem occurred.

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.

下面我粘贴我的代码.

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

推荐答案

将数据发布到PayUMoney时,您并没有发布名为service_provider强制性参数. 其值始终为payu_paisa. 因此,由于这个原因,您会收到此错误.

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.

关于, PayUMoney集成团队

Regards, PayUMoney Integration Team

这篇关于payumoney post集成在android.error中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆