INVALID_USER_CREDENTIALS / JSON_EXCEPTION on the PayU Android Platform

I am trying to integrate payU payment gateway with my e-commerce application. I have a test payU account with seller ID, key and salt.

I am working on this demo application every time I change parameters like merchant key , salt . I get error code 5014 .

Which can be any of them.

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

Note I get 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 I can not find suitable documentation.

Please, help.

+7
android payment-gateway payu
source share
1 answer

From the Payu documentation,

This error occurs when the seller misuses any of the following values.

  • Invalid Key
  • Wrong salt
  • Invalid environment

Please note that ENVIRONMENT must be 1 to confirm credentials, and 0 for live credentials

Decision. Please make sure that the test key is used if you click on the test environment and vice versa.

0
source share

All Articles