Skip to main content

Interface to the Ezidebit payment gateway for credit card and bank account payments.

Project description

ezi is a Python interface to the Ezidebit payment gateway.

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,
...    edit_customer_bank_account, edit_customer_credit_card,
...    get_settled_payments)
>>> 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')

>>> get_settled_payments(
...    '2015-03-01', '2015-03-02',
...    'https://api.demo.ezidebit.com.au/v3-3/pci?singleWsdl',
...    'YOUR DIGITAL KEY').Payment

Testing

To run the tests:

$ tox

Release History

0.4.1 (2021-09-28)

  • Update project URLs.

0.4.0 (2017-08-22)

Improvements

  • get_settled_payments now returns Decimal amounts.

0.3.3 (2016-10-17)

Bug fixes

  • Fixed AttributeError: 'module' object has no attribute 'client'.

0.3.2 (2016-03-21)

Improvements

  • Change get_settled_payments to return a list of Payment objects.

0.3.1 (2016-03-21)

Bug fixes

  • Add get_settled_payments to ezi/__init__.py.

0.3 (2016-03-16)

Improvements

  • Add a get_settled_payments function.

0.2.7 (2015-09-14)

Improvements

  • Strip non-digit characters from credit card number.

0.2.6 (2015-08-13)

Improvements

  • Handle suds.WebFault and translate to an EzidebitError.

0.2.5 (2015-07-31)

Improvements

  • Add HISTORY.rst.

0.2.4 (2015-07-31)

Improvements

  • Add syntax highlighting to README.rst.

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.4.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

ezi-0.4.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file ezi-0.4.1.tar.gz.

File metadata

  • Download URL: ezi-0.4.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for ezi-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d52c29699314b0858a5ce9346ded4d163b5e549e018dd6b0221f2d8fa33bf242
MD5 f093dfd2fdf2802f2d2a83cdf1d5de33
BLAKE2b-256 f4b8437141021ebee9d41d11e5e99018c2aada8a7d9f0f8b7588ee703e57502b

See more details on using hashes here.

File details

Details for the file ezi-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: ezi-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for ezi-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 709ac9b482c593c76351b58d57ac3c0fcaca25f76d2df33b01f39eaf524a88d4
MD5 76c0fd5a88c023d8d114a31c8f17286d
BLAKE2b-256 6efe86795f3ec24ca99d302e8105188b25b5e0c1b8198e45987077fe0348664e

See more details on using hashes here.

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