Reply
Highlighted
Contributor
Posts: 31
Registered: ‎09-05-2017

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.

Highlighted
Posts: 2,765
Topics: 57
Kudos: 248
Blog Posts: 67
Registered: ‎12-05-2011

Re: Authentication error when switching to Live

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

Highlighted
Contributor
Posts: 31
Registered: ‎09-05-2017

Re: Authentication error when switching to Live

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.

Highlighted
Authorize.Net Expert
Posts: 75
Registered: ‎07-27-2016

Re: Authentication error when switching to Live

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.
Highlighted
Contributor
Posts: 31
Registered: ‎09-05-2017

Re: Authentication error when switching to Live

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?

Highlighted
Authorize.Net Expert
Posts: 75
Registered: ‎07-27-2016

Re: Authentication error when switching to Live

[ Edited ]
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.
Highlighted
Contributor
Posts: 31
Registered: ‎09-05-2017

Re: Authentication error when switching to Live

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

Highlighted
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Authentication error when switching to Live

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
Highlighted
Contributor
Posts: 31
Registered: ‎09-05-2017

Re: Authentication error when switching to Live

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?

Highlighted
Authorize.Net Expert
Posts: 84
Registered: ‎11-16-2017

Re: Authentication error when switching to Live

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