INVALID_USER_CREDENTIALS/JSON_EXCEPTION in “PayU” Android Integration

拟墨画扇 提交于 2019-12-04 12:10:55

问题


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:


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.



来源:https://stackoverflow.com/questions/33606125/invalid-user-credentials-json-exception-in-payu-android-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!