PayUmoney Android 集成问题

2024-02-11

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

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

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";

当我用实时凭据替换密钥和盐时:

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 显示错误,例如;

在这两种情况下,我都会发送以下参数;

"amount" -> "2.00"
"phone" -> "1234567899"
"service_provider" -> "payu_paisa"
"txnid" -> "d14c0152fd952498ebbf"
"email" -> "[email protected] /cdn-cgi/l/email-protection"
"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)

请给我一些解决方案。

Thanks.


我已使用此链接示例代码来集成 PayUhttps://github.com/payu-intrepos/Android-SDK-Sample-App https://github.com/payu-intrepos/Android-SDK-Sample-App

如需了解更多信息,您可以在此处查看 Android PayU SDK 集成https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration https://github.com/payu-intrepos/Documentations/wiki/6.-Android-SDK-Integration

我认为你没有传递所有参数 我已经使用下面的参数完成了这样的操作

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", "[email protected] /cdn-cgi/l/email-protection",
        ""+System.currentTimeMillis(), "https://payu.herokuapp.com/success",
        "https://payu.herokuapp.com/failure", merchantKey+":[email protected] /cdn-cgi/l/email-protection",
        "udf1", "udf2", "udf3", "udf4", "udf5", ""+PayuConstants.PRODUCTION_ENV};
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

PayUmoney Android 集成问题 的相关文章

随机推荐