问题描述
我正在尝试将PayUMoney集成到我的应用程序中.
I am trying to integrate PayUMoney in my application.
如果我使用以下测试凭据,则应用程序会提供正确的输出;
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";
当我更换Key&带有实时凭据的盐;
When I replace Key & salt with live credentials as;
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向我显示错误消息;
Webview showing me error like;
在两种情况下,我都发送以下参数;
In both cases I am sending following param;
"amount" -> "2.00"
"phone" -> "1234567899"
"service_provider" -> "payu_paisa"
"txnid" -> "d14c0152fd952498ebbf"
"email" -> "[email protected]"
"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)
请给我一些解决方法.
谢谢.
推荐答案
我使用此引用解决了此问题;
I solved this issue using this ref;
https://wordpress.org/support/topic/how-to-fix-payumoney-payubiz-plugin-error/
我使用了错误的键&实时网址的盐值.
I am using wrong Key & salt value for Live url.
然后,我在PayUbiz上拥有商家帐户,因此我需要在"service_provider"中传递空值.
And, secondly I have merchant account on PayUbiz so I need to pass empty value in "service_provider".
这篇关于PayUmoney Android集成中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!