哈希参数中缺少payU支付网关集成的android [英] Hash param is missing in payU payment gateway android integration

查看:191
本文介绍了哈希参数中缺少payU支付网关集成的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要payU支付网关在我的Andr​​oid应用程序集成。但是,当应用程序试图获得哈希键它给了我错误,指出

I need to integrate payU payment gateway in my android app. But when app is trying to to get hash key it gives me error saying that

哈希参数丢失

在演示应用程序有两个选项来生成散列

In demo app there are two option to generate hash

if(null == salt) 
        generateHashFromServer(mPaymentParams);
    else 
        generateHashFromSDK(mPaymentParams, intent.getStringExtra(PayuConstants.SALT));

在演示程序有纸条,上面写着该散列密钥生成应该做的事
在服务器端

In demo app there are note saying that hash key generation should be done on server side

所以我路过盐为空

但现在的问题是哪个服务器的URL我必须用生成散列?
演示应用程序使用此网址
https://payu.herokuapp.com/get_hash

but Now the question is Which server url I have to use to generate hash? Demo app is using this url https://payu.herokuapp.com/get_hash

推荐答案

我做小的搜索得到的解决方案。

I got solution by doing little search.

刚刚产生使用自己的服务器所需的所有哈希值。
获得所有必需的哈希值后,我们需要使用这个散列进行PayuHashes的OBJ
并通过这个的OBJ在这样的意图

Just generate all required hashes using own server. After getting all required hashes we need to make PayuHashes Obj using this hashes and pass this Obj in intent like this

intent = new Intent(this, PayUBaseActivity.class);
intent.putExtra(PayuConstants.PAYU_CONFIG, payuConfig);
intent.putExtra(PayuConstants.PAYMENT_PARAMS, mPaymentParams);
intent.putExtra(PayuConstants.PAYU_HASHES, payuHashes);
intent.putExtra(PayuConstants.SALT, salt);

PayU SDK会照顾的休息

PayU SDK will take care of rest

这篇关于哈希参数中缺少payU支付网关集成的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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