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.
From the Payu Documentation,
This error occurs when merchant uses any of the following incorrectly.
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.