cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication error when switching to Live

All of my code is working correctly with my sandbox credentials but as soon as I switch to the live version I start getting an error. The error is E00007 "User authentication failed due to invalid authentication values".

 

I have checked and rechecked my authentication values and they are correct. I submitted a ticket to Authorize and they just keep parroting back that error E00007 is because my authentication values are wrong.

PcDudes524
Contributor
13 REPLIES 13

Hello @PcDudes524

 

Are you using credentials retrieved from production merchant interface (https://account.authorize.net) or your sandbox credentials.  Our production and sandbox systems are completely separate and you cannot use one set of credentials with the other.

 

Richard

RichardH
Administrator Administrator
Administrator

I am using credentials from the production merchant interface. As I said the code works fine with sandbox authentication values but when I switch to the live authentication I get an error.

If your code is working fine with Sandbox environment, that means you are making request to Sandbox API endpoint (https://apitest.authorize.net/xml/v1/request.api) with correct Sandbox API credentials.

For live transaction you will need to make the calls to Production API endpoint (https://api.authorize.net/xml/v1/request.api) with Production API credentials.

If you make this 2 things correct your request should get successful response. Please cross check this 2 things.
kikmak42
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert

Yes, that is part of the switch from the sandbox enviroment to the live enviroment. Would you like me to post my code so you can double check it?

You can use your credentials to make the following request to the Production Endpoint( https://api.authorize.net/xml/v1/request.api) using Postman or any rest client.

<authenticateTestRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>API_LOGIN_ID</name>
<transactionKey>API_TRANSACTION_KEY</transactionKey>
</merchantAuthentication>
</authenticateTestRequest>

If you still get E00007 error then there is an issue with the credentials, otherwise there is somewhere something wrong in the code.
kikmak42
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert

The Postman program is quite complicated, any tips on how to use it with Authorize because I am lost here.

You can use the sample code on the Github for testing your credentials 

 

https://github.com/AuthorizeNet/sample-code-java 

 

 





Send feedback at developer_feedback@authorize.net

Ok, the script is now properly generating a token and displaying the payment iframe. However when I enter payment information I get the following error.

 

"User authentication failed due to invalid authentication values."

 

Any ideas?

@PcDudes524  Can you try resetting your API password thru MINT URL - https://account.authorize.net and retry the API with latest password?

 

bhav
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert