An awesome-sauce Python library for accessing the Authorize.net API. Sweet!
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
authorize Pep8 updates May 13, 2016
docs
tests Pep8 updates May 13, 2016
.coveragerc Update .coveragerc Jul 26, 2015
.gitignore Add test coverage reporting Jul 26, 2015
.travis.yml Add sudo false to travis to use container architecture Jul 26, 2015
LICENSE Initial port from chewse codebase May 12, 2012
README.rst Updating readthedocs url May 16, 2016
requirements.txt Update sphinx version Jul 26, 2015
setup.py Updating readthedocs url May 16, 2016
tox.ini Fix Python 3.2 compatibility with the help of six.u Jul 26, 2015

README.rst

Authorize Sauce

The secret sauce for accessing the Authorize.net API. The Authorize APIs for transactions, recurring payments, and saved payments are all different and awkward to use directly. Instead, you can use Authorize Sauce, which unifies all three Authorize.net APIs into one coherent Pythonic interface. Charge credit cards, easily!

>>> # Init the authorize client and a credit card
>>> from authorize import AuthorizeClient, CreditCard
>>> client = AuthorizeClient('285tUPuS', '58JKJ4T95uee75wd')
>>> cc = CreditCard('4111111111111111', '2018', '01', '911', 'Joe', 'Blow')
>>> card = client.card(cc)

>>> # Charge a card
>>> card.capture(100)
<AuthorizeTransaction 2171829470>

>>> # Save the card on Authorize servers for later
>>> saved_card = card.save()
>>> saved_card.uid
'7713982|6743206'

>>> # Use a saved card to auth a transaction, and settle later
>>> saved_card = client.saved_card('7713982|6743206')
>>> transaction = saved_card.auth(200)
>>> transaction.settle()

Saucy Features

  • Charge a credit card
  • Authorize a credit card charge, and settle it or release it later
  • Credit or refund to a card
  • Save a credit card securely on Authorize.net's servers
  • Use saved cards to charge, auth and credit
  • Create recurring charges, with billing cycles, trial periods, etc.

For the full documentation, please visit us at Read the Docs. Thanks to Chewse for supporting the development and open-sourcing of this library. Authorize Sauce is released under the MIT License.