Authentication credentials were not provided Error in Android

Posted in General by Jijith Mon Nov 06 2017 05:52:33 GMT+0000 (UTC)·7·Viewed 921 times

I integrated Instamojo in android and its working when I use this code. callInstamojoPay("tester@gmail.com", "7875432991", "10", "official", "buyername"); If I change this code to actual values payment gateway showing the error { "success": false, "message": "Authentication credentials were not provided." } Please help me to identify the error
Jijith
Nov 6, 2017

Finally I fixed it. It's because the "purpose" field characters were lengthy.

Jagadesh Seeram
Dec 2, 2017

Hi Jijith,

Need your help in Android integration.

Jagadesh Seeram
Dec 2, 2017

Can you please mail me.
seeram.jagadesh@gmail.com

Gopal
Dec 11, 2017

Hi Jijith,
I am also getting same error. So can you guide me (gopalkripatro@gmail.com) , why am I getting this error and how will it be fix?

Jijith
Dec 11, 2017

Could you please share the piece of code that you are using to call the instamojo method?

Vinoth Umasankar
Feb 9, 2018

else if (error instanceof Errors.AuthenticationError) {
showToast("Access token is invalid or expired. Please Update the token!!");
if(cdt != null)
{
cdt.cancel();
}
if (progressDialog != null && progressDialog.isShowing()) {
progressDialog.dismiss();
}

My inputs are

accessToken = "vQ2B2VcfTcmLOIs8nmyUn7ferVECTP"
transactionID = "15820180209124103"
name = "vinoth"
email = "uganeshvinoth@gmail.com"
phone = "9600320706"
amount = "86"
description = "vinoth HoChef Order"

order = {Order@7807}
a = null
b = "15820180209124103"
c = "vinoth"
d = "uganeshvinoth@gmail.com"
e = "9600320706"
f = "86"
g = "vinoth HoChef Order"
h = "INR"
i = "https://api.instamojo.com/integrations/android/redirect/"
j = null
k = "Android_SDK"
l = "vQ2B2VcfTcmLOIs8nmyUn7ferVECTP"
m = null
n = null
o = null
p = null
q = null
r = null

Am getting this error

com.instamojo.android.models.Errors$AuthenticationError: {
"success": false,
"message": "Authentication credentials were not provided."
}

Can you help me jijith

My Contact Details are - +919600320706 - uganeshvinoth@gmail.com

Joseph Rex
Jan 24, 2019

Jijith am having the same error when the access token is generated in Test-Environment, but working fine when the access token is generated in Production-Environment.
Please contact me PH: +91-8281956880 Email: josephrex.gooseberry@gmail.com

  
Markdown is allowed