首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PayUmoney安卓集成中的问题

PayUmoney安卓集成中的问题
EN

Stack Overflow用户
提问于 2016-10-21 10:15:33
回答 2查看 4.6K关注 0票数 3

我正在尝试将PayUMoney集成到我的应用程序中。

如果我使用以下测试凭据,应用程序会给出适当的输出;

代码语言:javascript
复制
String merchant_key = "kYz2vV"; 
String salt = "zhoXe53j"; 
String base_url = "https://test.payu.in/_payment"; 
String SUCCESS_URL = "https://www.payumoney.com/mobileapp/payumoney/success.php";
String FAILED_URL = "https://www.payumoney.com/mobileapp/payumoney/failure.php";

当我用活生生的凭证代替钥匙和盐时;

代码语言:javascript
复制
String merchant_key = "gtKFFx"; 
String salt = "eCwWELxi";
String base_url = "https://secure.payu.in/_payment";
String SUCCESS_URL = "https://www.payumoney.com/mobileapp/payumoney/success.php";
String FAILED_URL = "https://www.payumoney.com/mobileapp/payumoney/failure.php";

Webview显示我的错误就像;

在这两种情况下,我都会派人跟着对位;

代码语言:javascript
复制
"amount" -> "2.00"
"phone" -> "1234567899"
"service_provider" -> "payu_paisa"
"txnid" -> "d14c0152fd952498ebbf"
"email" -> "test@gmail.com"
"hash" -> "b7f634896ec080f9f31424bd7c189e440f4cba573ada744dc2069ac9c79fa2bb95f3c7dc48f65eb123b0dd3c70de0b3fedfedca0ee3c013eb7a52c55e7833b31"
"surl" -> "https://www.payumoney.com/mobileapp/payumoney/success.php"
"furl" -> "https://www.payumoney.com/mobileapp/payumoney/failure.php"
"firstname" -> "test"
"productinfo" -> "Test"
"key" -> "gtKFFx"(for live) / "kYz2vV"(for test)

请给我一些解决办法。

谢谢。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-10-25 07:17:32

我用这个参考文献解决了这个问题;

https://wordpress.org/support/topic/how-to-fix-payumoney-payubiz-plugin-error/

我使用了错误的键和盐值的Live。

其次,我在PayUbiz上有商人帐户,所以我需要在"service_provider“中传递空值。

票数 -1
EN

Stack Overflow用户

发布于 2016-10-21 11:32:03

我使用了这个链接示例代码来集成PayU https://github.com/payu-intrepos/Android-SDK-Sample-App

有关更多信息,您可以在这里查看Android PayU SDK集成( https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration )。

我认为您没有传递所有参数--我使用下面这样的参数完成了它

代码语言:javascript
复制
String merchantKey = "YOUR_KEY";

String mandatoryKeys[] = { PayuConstants.KEY, PayuConstants.AMOUNT, PayuConstants.PRODUCT_INFO,
    PayuConstants.FIRST_NAME, PayuConstants.EMAIL, PayuConstants.TXNID, PayuConstants.SURL,
    PayuConstants.FURL, PayuConstants.USER_CREDENTIALS, PayuConstants.UDF1, PayuConstants.UDF2,
    PayuConstants.UDF3, PayuConstants.UDF4, PayuConstants.UDF5, PayuConstants.ENV};

String mandatoryValues[] = { merchantKey, "10.0", "myproduct", "firstname", "me@itsmeonly.com",
        ""+System.currentTimeMillis(), "https://payu.herokuapp.com/success",
        "https://payu.herokuapp.com/failure", merchantKey+":payutest@payu.in",
        "udf1", "udf2", "udf3", "udf4", "udf5", ""+PayuConstants.PRODUCTION_ENV};
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40173992

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档