GithubHelp home page GithubHelp logo

employinsight / authorizesauce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drewisme/authorizesauce

0.0 3.0 0.0 132 KB

An awesome-sauce Python library for accessing the Authorize.net API. Sweet!

License: MIT License

Python 100.00%

authorizesauce's Introduction

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.

authorizesauce's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.