- Python 2.7 or greater
- OpenSSL 1.0.2 or greater
- An Authorize.Net account (see Registration & Configuration section below)
We'll be ensuring this SDK is compatible with Python 2.7+, 3.2+ and PyPy but we're primarily testing against Python 2.7.
To install the AuthorizeNet Python SDK:
pip install authorizenet
Use of this SDK and the Authorize.Net APIs requires having an account on our system Get a sandbox account at https://developer.authorize.net/sandbox
Set your API credentials:
merchantAuth = apicontractsv1.merchantAuthenticationType()
merchantAuth.name = 'YOUR_API_LOGIN_ID'
merchantAuth.transactionKey = 'YOUR_TRANSACTION_KEY'
To set the environment use the setenvironment method on the controller before executing. E.g. for the example above:
# Defaults to constants.SANDBOX for sandbox testing
createtransactioncontroller.setenvironment(constants.PRODUCTION)
See our sample code repository at https://github.com/AuthorizeNet/sample-code-python
- python 2.7
- pyxb 1.2.4
Run the following to get pyxb and nosetests:
- pip install pyxb
- pip install unittest2
- pip install nose
- pip install lxml
- Tests available are: unit tests, mock tests, sample code
- use nosetests to run all unittests
>nosetests
This repository is destributed under a proprietary license. See the provided license file(../blob/readme/LICENSE.txt). This repository is destributed under a proprietary license. See the provided license file [../blob/readme/LICENSE.txt] file. This repository is destributed under a proprietary license. See the provided license file (../blob/readme/LICENSE.txt) file.