与Ezidebit支付网关的接口,用于信用卡和银行帐户支付。
ezi的Python项目详细描述
ezi是一个到ezidebit支付网关的python接口。
示例
按银行帐户或信用卡添加新的直接借记:
>>>fromeziimport(...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
测试
运行测试:
$ tox
发布历史记录
0.4.0(2017-08-22)
改进
- ^{tt2}$ now returns ^{tt3}$ amounts.
0.3.3(2016-10-17)
错误修复
- 修正了AttributeError: 'module' object has no attribute 'client'。
0.3.2(2016-03-21)
改进
- 更改get_settled_payments以返回支付对象列表。
0.3.1(2016-03-21)
错误修复
- 将get_settled_payments添加到ezi/__init__.py。
0.3(2016-03-16)
改进
- Add a ^{tt2}$ function.
0.2.7(2015-09-14)
改进
- Strip non-digit characters from credit card number.
0.2.6(2015-08-13)
改进
- Handle ^{tt9}$ and translate to an ^{tt10}$.
0.2.5(2015-07-31)
改进
- Add ^{tt11}$.
0.2.4(2015-07-31)
改进
- Add syntax highlighting to ^{tt12}$.