问题描述
我正试图将payU支付网关与我的电子商务应用程序集成.我在测试payU 上有一个帐户,该帐户带有商家ID,密钥和盐.
I am tring to integrate payU payment gateway with my ecommerce application. I have a account on test payU with merchant id, key and salt.
每当我更改参数时,我都会在演示应用程序上进行工作.如merchant key
,salt
.我得到一个error code 5014
.
I am working on this demo application, whenever i change parameters like merchant key
, salt
. I get a error code 5014
.
可以是其中任何一个.
-
int INVALID_USER_CREDENTIALS = 5014;
-
int JSON_EXCEPTION = 5014;
"Something went wrong : Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject"
"Something went wrong : Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject"
我正在尝试调试它,但是找不到合适的文档.
I am trying to debug it.But am unable to find a proper documentation.
请帮助.
推荐答案
来自Payu文档,
当商家不正确地使用以下任何一项时,就会发生此错误.
This error occurs when merchant uses any of the following incorrectly.
- 密钥错误
- 盐差
- 错误的环境
请注意,环境对于测试凭据应为1,对于实时凭据应为0
解决方案:如果您要访问测试环境,请确保使用了测试密钥,反之亦然.
Solution: Please make sure the test key being used if you are hitting the test environment and vice-versa.
这篇关于"PayU"中的INVALID_USER_CREDENTIALS/JSON_EXCEPTION; Android整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!