Reply
Member
Posts: 5
Registered: ‎02-22-2013
Accepted Solution

User authentication failed due to invalid authentication values.

Dear Sir,

 
I'm a developer and i'm deploying Authorize.net ARB API to client website. When I'm going to transaction it shows the error "Response Text: User authentication failed due to invalid authentication values." What is this issue. I used my test account credentials so it's working fine but when i change the test credential to merchant API login and transaction key it shows the error. I have changed the URL : $host = "api.authorize.net"; $path = "/xml/v1/request.api"; but still shows the same error. 
 
Really Appreciate your quick response.

Accepted Solutions
Solution
Accepted by topic author tiek
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: User authentication failed due to invalid authentication values.

double check the merchant loginID and transactionKey. Or try regenerating a new transactionKey.

View solution in original post

Solution
Accepted by Aaron (All Star)
‎04-03-2017 08:27 AM
Member
Posts: 5
Registered: ‎02-22-2013

Re: User authentication failed due to invalid authentication values.

Dear Raynor,

 

I have done :) I just reset the transaction key and now it's working fine. Thanks 4 your support. 

View solution in original post


All Replies
Solution
Accepted by topic author tiek
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: User authentication failed due to invalid authentication values.

double check the merchant loginID and transactionKey. Or try regenerating a new transactionKey.

Member
Posts: 5
Registered: ‎02-22-2013

Re: User authentication failed due to invalid authentication values.

Thank's i'll check and let you know

Member
Posts: 5
Registered: ‎02-22-2013

Re: User authentication failed due to invalid authentication values.

Dear RaynorC1emen7,

 

I double check my credentials login id and transaction key even i reset the transaction key but still i am facing hte same error . 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: User authentication failed due to invalid authentication values.

If you try new one and still getting the same response, can you log you request just before it send to authorize.net to make sure it is send to api.authorize.net? and what was the response reason code?

Member
Posts: 5
Registered: ‎02-22-2013

Re: User authentication failed due to invalid authentication values.

Dear Raynor,

 

Thanks for your quick response. I'm getting the below error.

Response Code: E00007
Response Text: User authentication failed due to invalid authentication values.

 

I am using the api.authorize.net url. 

$host = "api.authorize.net";

$path = "/xml/v1/request.api";

 

and below is my xml:

 

$content =

"<?xml version=\"1.0\" encoding=\"utf-8\"?>" .

"<ARBCreateSubscriptionRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">" .

"<merchantAuthentication>".

"<name>" . $loginname . "</name>".

"<transactionKey>" . $transactionkey . "</transactionKey>".

"</merchantAuthentication>".

"<refId>" . $refId . "</refId>".

"<subscription>".

"<name>" . $name . "</name>".

"<paymentSchedule>".

"<interval>".

"<length>". $length ."</length>".

"<unit>". $unit ."</unit>".

"</interval>".

"<startDate>" . $startDate . "</startDate>".

"<totalOccurrences>". $totalOccurrences . "</totalOccurrences>".

"<trialOccurrences>". $trialOccurrences . "</trialOccurrences>".

"</paymentSchedule>".

"<amount>". $amount ."</amount>".

"<trialAmount>" . $trialamount . "</trialAmount>".

"<payment>".

"<creditCard>".

"<cardNumber>" . $cardNumber . "</cardNumber>".

"<expirationDate>" . $expirationDate . "</expirationDate>".

"</creditCard>".

"</payment>".

"<billTo>".

"<firstName>". $firstName . "</firstName>".

"<lastName>" . $lastName . "</lastName>".

"</billTo>".

"</subscription>".

"</ARBCreateSubscriptionRequest>";

 

//send the xml via curl

$response = send_request_via_curl($host,$path,$content);

 

Please check and revert me back. I'm still stuck here. 

Solution
Accepted by Aaron (All Star)
‎04-03-2017 08:27 AM
Member
Posts: 5
Registered: ‎02-22-2013

Re: User authentication failed due to invalid authentication values.

Dear Raynor,

 

I have done :) I just reset the transaction key and now it's working fine. Thanks 4 your support. 

Member
Posts: 2
Registered: ‎03-29-2017

Re: User authentication failed due to invalid authentication values.

I'm a asp.net mvc developer and i'm deploying Authorize.net to client website. When I'm going to transaction it shows the error "Response Text: User authentication failed due to invalid authentication values." What is this issue. I used my test account credentials so it's working fine but when i change the test credential to merchant API login and transaction key it shows the error.
 
string res = "";
try
{
String ApiLoginID = "";
String ApiTransactionKey = "";

ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.PRODUCTION/SENDBOX(both are using individual);

// define the merchant information (authentication / transaction id)
ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
{
name = ApiLoginID,
ItemElementName = ItemChoiceType.transactionKey,
Item = ApiTransactionKey,
};

var creditCard = new creditCardType
{
cardNumber = objPay.Card_Num,
expirationDate = objPay.Day + (objPay.Year.Substring(objPay.Year.Length - 2)), //objPay.Exp_Date
cardCode = objPay.card_code
};

var billingAddress = new customerAddressType
{
firstName = objPay.First_Name,
lastName = objPay.Last_Name,
address = objPay.Address,
city = objPay.City,
zip = objPay.ZIP
};
//standard api call to retrieve response
var paymentType = new paymentType { Item = creditCard };

var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(), // authorize only
amount = objPay.Amount,
payment = paymentType,
billTo = billingAddress
};

var request = new createTransactionRequest { transactionRequest = transactionRequest };

// instantiate the contoller that will call the service
var controller = new createTransactionController(request);
controller.Execute();

// get the response from the service (errors contained if any)
var response = controller.GetApiResponse();

//validate
if (response != null)
{
if (response.messages.resultCode == messageTypeEnum.Ok)
{
if (response.transactionResponse.messages != null)
{
Console.WriteLine("Successfully created transaction with Transaction ID: " + response.transactionResponse.transId);
Console.WriteLine("Response Code: " + response.transactionResponse.responseCode);
Console.WriteLine("Message Code: " + response.transactionResponse.messages[0].code);
Console.WriteLine("Description: " + response.transactionResponse.messages[0].description);
Console.WriteLine("Success, Auth Code : " + response.transactionResponse.authCode);
}
else
{
Console.WriteLine("Failed Transaction.");
if (response.transactionResponse.errors != null)
{
Console.WriteLine("Error Code: " + response.transactionResponse.errors[0].errorCode);
Console.WriteLine("Error message: " + response.transactionResponse.errors[0].errorText);
}
}
}
else
{
Console.WriteLine("Failed Transaction.");
if (response.transactionResponse != null && response.transactionResponse.errors != null)
{
Console.WriteLine("Error Code: " + response.transactionResponse.errors[0].errorCode);
Console.WriteLine("Error message: " + response.transactionResponse.errors[0].errorText);
}
else
{
Console.WriteLine("Error Code: " + response.messages.message[0].code);
Console.WriteLine("Error message: " + response.messages.message[0].text);
}
}
}
else
{
Console.WriteLine("Null Response.");
}
res = response.ToString();
}
catch (Exception ex)
{
res = ex.Message;
}
//return View(res);
return RedirectToAction("Index2", "Home");
}
 
your quick response. i am waiting