[英]Issue in PayUmoney Android integration
I am trying to integrate PayUMoney in my application. 我想在我的应用程序中集成PayUMoney。
Application gives proper output if i use following test credentials; 如果我使用以下测试凭证,应用程
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";
When I replace Key & salt with live credentials as; 当我用实时凭证替换Key&salt时;
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 showing me error like; Webview向我显示错误;
In both cases I am sending following param; 在这两种情况下,我发送以下参数;
"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)
Please give me some solution. 请给我一些解决方案。
Thanks. 谢谢。
I have used this link sample code to integrate PayU https://github.com/payu-intrepos/Android-SDK-Sample-App 我使用此链接示例代码来集成PayU https://github.com/payu-intrepos/Android-SDK-Sample-App
For more, You can checkout Android PayU SDK integration here https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration 有关更多信息,您可以在此处查看Android PayU SDK集成https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration
I think you doesn't have passed all parameters I have done it using below parameters like this 我认为你没有通过我使用下面这些参数完成的所有参数
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};
I solved this issue using this ref; 我使用这个ref解决了这个问题;
https://wordpress.org/support/topic/how-to-fix-payumoney-payubiz-plugin-error/ https://wordpress.org/support/topic/how-to-fix-payumoney-payubiz-plugin-error/
I am using wrong Key & salt value for Live url. 我在使用Live url时使用了错误的Key和salt值。
And, secondly I have merchant account on PayUbiz so I need to pass empty value in "service_provider". 其次,我在PayUbiz上有商家帐户,所以我需要在“service_provider”中传递空值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.