Skip to main content

UNKNOWN

Project description

ezi is a Python interface to the Ezidebit payment gateway.

Note that the current API relies on a Django-like User object. We’ll remove that requirement in future releases.

Example

To add a new direct debit by bank account or credit card:

>>> from ezi import add_bank_debit, add_card_debit, add_payment, clear_schedule
>>> add_bank_debit(
...    608725, 'Example', 'Person', 'email@example.com', 'invoice-99',
...    '200', '2015-03-01', 'Mr Person', '111111', '123456',
...    'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',
...    'YOUR DIGITAL KEY')

>>> add_card_debit(
...    608725, 'Example', 'Person', 'email@example.com', 'invoice-99',
...    '200', '2015-03-01', 'Mr Example', '4444333322221111', '01/16',
...    'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',
...    'YOUR DIGITAL KEY')

>>> clear_schedule(
...    608725,
...    'https://api.demo.ezidebit.com.au/v3-3/nonpci?singleWsdl',
...    'YOUR DIGITAL KEY')

>>> add_payment(
...    608725, 'invoice-99', '200', '2015-03-01',
...    'https://api.demo.ezidebit.com.au/v3-3/nonpci?singleWsdl',
...    'YOUR DIGITAL KEY')

>>> edit_customer_bank_account(
...    608725, 'Mr Example', '111111', '123456',
...    'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',
...    'YOUR DIGITAL KEY')

>>> edit_customer_credit_card(
...    608725, 'Mr Example', '4444333322221111', '01/16',
...    'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',
...    'YOUR DIGITAL KEY')

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

ezi-0.2.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Supported by

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