INVALID_USER_CREDENTIALS/JSON_EXCEPTION in “PayU”

2019-03-21 02:00发布

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.

I am working on this demo application, whenever i change parameters like merchant key, salt. I get a error code 5014.

Which can be either of them.

  • int INVALID_USER_CREDENTIALS = 5014;
  • int JSON_EXCEPTION = 5014;

Note: I am getting this as a response string:

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

Please help.

1条回答
等我变得足够好
2楼-- · 2019-03-21 02:43

From the Payu Documentation,

This error occurs when merchant uses any of the following incorrectly.

  • Wrong Key
  • Wrong Salt
  • Wrong Environment

Please note that ENVIRONMENT should be 1 for test credentials and 0 for live credentials

Solution: Please make sure the test key being used if you are hitting the test environment and vice-versa.

查看更多
登录 后发表回答