与Adyen支付网关的接口
tranchitella.adyen的Python项目详细描述
tranchitella.adyen
这个包提供了一个到adyen支付网关的python接口。
使用量
创建新的AdyenPaymentGateway对象:
>>> from tranchitella.adyen import AdyenPaymentGateway >>> obj = AdyenPaymentGateway( ... url='https://pal-test.adyen.com/pal/servlet/soap/Payment', ... user='ws@Company.YourCompany', password='YourPassword', ... merchantAccount='MerchantAccount', ... )
授权交易:
>>> obj.authorise('T-1', 100, 'EUR', 'FABIO TRANCHITELLA', ... '5555444433331111', '12', '2012', '737', ipAddress='127.0.0.1') {'authCode': ... }
取消交易:
>>> print obj.cancel('8112083591854919') True
捕获事务:
>>> print obj.capture('8112083586124880', 100, 'EUR') True
退款交易:
>>> print obj.refund('8112083586124880', 100, 'EUR') True
更改
0.3(2011-12-13)
- 添加了对ShopPerstatement参数的支持。
0.2(2010-04-19)
- 重新授权到LGPL版本2或更高版本。
0.1(2010-02-26)
- 首次公开发行。