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
Solved! Go to Solution.
09-06-2017 01:24 PM
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)
09-06-2017 02:03 PM - edited 09-06-2017 02:07 PM
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
09-06-2017 01:47 PM
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
09-06-2017 01:57 PM
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)
09-06-2017 02:03 PM - edited 09-06-2017 02:07 PM
That seems to have done it.
Thanks!
09-06-2017 02:18 PM
Very good, glad to hear it.
09-06-2017 02:18 PM
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
09-06-2017 05:04 PM
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
09-06-2017 05:15 PM - edited 09-06-2017 05:16 PM