Skip to main content

GetPaid authorize.net payment processor functionality

Project description

This package provides authorizedotnet payment processor functionality for the getpaid framework.

CHANGES

0.4.0 (2010-04-07)

  • Use zope.annotation instead of zope.app.annotation [davisagli]

0.3.3 (2009-08-19)

  • Record the transaction id returned by authorize.net

0.3.2 (2009-07-22)

  • Handle expiration date as a string.

0.3.1 (2009-03-13)

  • added M2Crypto in the setup.py dependencies [lucielejard]

0.3 (2008-08-29)

  • Added buildout files and general text documents to project root.

  • Removed setup.cfg

0.2 (2008-08-21)

  • Eggified package

Detailed Documentation

GetPaid Authorize.Net Payment Processor

Store Specific Processor Setting Tests

First let’s create a store class to work with:

>>> from getpaid.core import interfaces
>>> from zope.annotation import IAttributeAnnotatable
>>> from zope.interface import implements
>>> class Store:
...    implements( interfaces.IStore, IAttributeAnnotatable )
>>> store = Store()

And configure our payment processor:

>>> interfaces.I
>>

Now let’s create an order to process:

>>> from getpaid.core import order, item, cart
>>> order1 = order.Order()
>>> my_cart = cart.ShoppingCart()
>>> my_cart['abc'] = abc = item.LineItem()
>>> abc.cost = 22.20; abc.name = 'abc'; abc.quantity = 3
>>> str(order1.getTotalPrice())
'22.20'

Authorizing an Order

Now we can run it through a processor:

>>> from zope import component
>>> processor = IPaymentProcessor( store )
>>> processor.authorize( order ) == interfaces.keys.results_sucess
True
>>>

Capturing/Charing an Order

Refunding an Order

Voiding an Order

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getpaid.authorizedotnet-0.4.0.zip (15.8 kB view details)

Uploaded Source

File details

Details for the file getpaid.authorizedotnet-0.4.0.zip.

File metadata

File hashes

Hashes for getpaid.authorizedotnet-0.4.0.zip
Algorithm Hash digest
SHA256 2ad02dfa4c152c046a24301f44396aea39ba12b942599ebccbb1e5a11b440ea8
MD5 159bdaf4620e54b6b8fe4dd00ccab000
BLAKE2b-256 4a6be0a840f1e761285ab7d1b94875852111aeb8ec59c82e034fc7762f8d0b92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page