问题
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