[] (https://travis-ci.org/AuthorizeNet/sdk-python)
pip install AuthorizeNet
*** The Python SDK is still in limited Beta testing, please contact developer@authorize.net for more information ***
Requires
To install AuthorizeNet
pip install AuthorizeNet
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'
For reporting tests, go to https://sandbox.authorize.net/ under Account tab->Transaction Details API and enable it.
See our sample code repository at https://github.com/AuthorizeNet/sample-code-python
For the simplest "Hello World" example, use paste this into a file called charge-credit-card.py and run:
- python 2.7
- pyxb 1.2.4
Run the following to get pyxb and nosetests:
- pip install pyxb
- pip install nosetests
- pip install Magicmock
- Tests available are: unit tests, mock tests, sample code
- use nosetests to run all unittests