8

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.

Community
  • 1
  • 1
Shubham AgaRwal
  • 4,355
  • 8
  • 41
  • 62

1 Answers1

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

Amal Dev S I
  • 938
  • 13
  • 18