INVALID_USER_CREDENTIALS/JSON_EXCEPTION in "PayU" Android Integration
Asked Answered
M

1

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.

Miskolc answered 9/11, 2015 at 9:36 Comment(10)
I also get same error some one please try to help meMccrae
Btw the problem may be because of your account might not be activated drop them a mail they will activate you accountMiskolc
@Shubham: Are you sure about, account not be activated....?Winton
I am pretty sure as int INVALID_USER_CREDENTIALS = 5014.Miskolc
@Shubham: I also get this error when run the demo code in my app with changes key and salt.Paradox
@Paradox try latest sdk github.com/payu-intrepos/Android-SDK-Sample-App/tree/version/…\Miskolc
I am already using that code.Paradox
i am using gtKFFx/eCwWELxi merchant id and key value pair and it's workMiskolc
if you are having Something went wrong : Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject that means you are passing wrong params either your hashes are not correct/environment or config object is wrongMiskolc
does anyone find the solution..i am also getting the same error...Pape
F
0

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.

Firstling answered 9/2, 2018 at 12:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.