cancel
Showing results for 
Search instead for 
Did you mean: 

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.
tiek
Member
2 ACCEPTED SOLUTIONS

Accepted Solutions

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

View solution in original post

RaynorC1emen7
Expert

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

9 REPLIES 9

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

RaynorC1emen7
Expert

Thank's i'll check and let you know

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 . 

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?

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. 

Dear Raynor,

 

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

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 
biru
Member

I have reset my transaction KEY and am using the development server.

 

I too am getting this error.  I know the module works fine on the production server as I have it running there now, but am looking to add in some additional features and want to use the sand box for this.

 

No luck though loggong in. I get the error:

 

Error Processing Credit Card : E00007 -- User authentication failed due to invalid authentication values.

 

I know that I am passing the correct values (verified) and  and looking to use the development server.

cannuck1964
Member

I am so lost. how do i get to the or where do i go for resetting the transaction key? is it in cloudbeds? or somewhere else?