Changeset 12277 for main/waeup.ikoba/branches/uli-payments
- Timestamp:
- 21 Dec 2014, 08:43:44 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/payment.py
r12163 r12277 23 23 import uuid 24 24 from datetime import datetime 25 from zope.component import getUtilitiesFor 25 26 from zope.event import notify 26 27 from waeup.ikoba.payments.interfaces import ( 27 28 IPayment, STATE_UNPAID, STATE_FAILED, STATE_PAID, 29 IPaymentGatewayService, 28 30 ) 29 31 from waeup.ikoba.utils.logger import Logger 32 33 34 def get_payment_providers(): 35 """Get all services of payment gateways registered. 36 """ 37 return dict( 38 getUtilitiesFor(IPaymentGatewayService) 39 ) 40 41 42 class PaymentProviderServiceBase(grok.GlobalUtility): 43 44 grok.baseclass() 45 grok.implements(IPaymentGatewayService) 46 47 title = u'Sample Credit Card Service' 30 48 31 49
Note: See TracChangeset for help on using the changeset viewer.