cancel
Showing results for 
Search instead for 
Did you mean: 

Accept.js and E00007 invalid authentication values

I've set up a nice implementation of Accept.js which works with the sandbox. 

Now, to make the change to my live account (which I've been using for many years)

I update my login, trans_key, and client_key, verifying that they are correct.  I then

change my javascript include from 

 

src='https://jstest.authorize.net/v1/Accept.js'

 

to 

 

src='https://js.authorize.net/v1/Accept.js'

 

 

Then I get the E00007 error about bad authentication values.  Is there any other

piece of configuration that I'd have to change to get everything going correctly into

the live account?  Do I need to enable Accept.js in the live account?

 

Thanks for any help.

 

 

Tobiah

tobiah
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Using the Python SDK,  these are defined in constants.py,  to switch to the production environment, use the setenvironment method on the controller before executing. For example:

createtransactioncontroller.setenvironment(constants.PRODUCTION)

 

Powered by NexWebSites.com -
Certified Authorize.net developers

View solution in original post

NexusSoftware
Trusted Contributor
7 REPLIES 7

Hello,

 

This error indicates that invalid credentials, the API Login ID or Transaction Key, are being submitted. If you have confirmed that your API login ID and Transaction Key are accurate, you may need to confirm that you are submitting to the correct URL. For production the URL would be : https://api.authorize.net/xml/v1/request.api

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

II don't know that I have access to that the way I'm doing things.  In order to do the actual
charge, I adapted some python code I found in the API reference.  It has these imports:
 
from authorizenet import apicontractsv1 

from authorizenet.apicontrollers import *  
 
I build up a complex object and pass it to the library like this at the end:
 

createtransactioncontroller = createTransactionController(createtransactionrequest) createtransactioncontroller.execute()

response = createtransactioncontroller.getresponse()          
 
 I don't see any opportunity to change the target URL.  I assumed that the token that
came back from Accept.js would have with it implied information as to whether it 
was a test transaction or not.

 

Thanks,

 

 

Tobiah

Using the Python SDK,  these are defined in constants.py,  to switch to the production environment, use the setenvironment method on the controller before executing. For example:

createtransactioncontroller.setenvironment(constants.PRODUCTION)

 

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

That seems to have done it. 

 

Thanks!

Very good, glad to hear it.

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Hey, I'm an admitted doc skimmer, but I was thinking about your answer.  Where might I have found this information had I been a more avid reader?

 

 

Thanks again,

 

Tobiah

 

Personally, I just follow the code, as that is always the most definitive. But there is some documentation for the Python SDK at https://github.com/AuthorizeNet/sdk-python

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor