Changeset 12276
- Timestamp:
- 21 Dec 2014, 08:41:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py
r12138 r12276 18 18 import decimal 19 19 from zope import schema 20 from zope.interface import Interface 20 21 from waeup.ikoba.interfaces import ( 21 22 IIkobaObject, SimpleIkobaVocabulary, ContextualDictSourceFactoryBase) … … 33 34 (_('Failed'), STATE_FAILED), 34 35 ) 36 37 38 class IPaymentGatewayService(Interface): 39 """A financial gateway service. 40 41 Any gateway provider might provide several services. For instance 42 payments by credit card, scratch card, bank transfer, etc. An 43 `IPaymentGatewayService` represents one of those services. 44 45 Payment services are normally registered as a named global 46 utility. 47 """ 48 title = schema.TextLine( 49 title=u'Title', 50 description=u'Human readable name of gateway service.', 51 required=True, 52 ) 35 53 36 54 … … 52 70 """A base representation of payments. 53 71 72 In a payment, a payer payes someone (the payee) for something, the 73 item to pay. 74 75 We currently support only the case where one payer pays one payee 76 for one item. The item might include taxes, handling, 77 shipping, etc. 78 79 As in RL any payment is actually performed by some financial 80 service provider (like paypal, interswitch, etc.), each of which 81 might provide several types of payments (credit card, scratch 82 card, you name it). 83 84 In Ikoba we call financial service providers 'gateway' and their 85 types of services are handled as gateway types. Therefore PayPal 86 handling a credit card payment is different from PayPal handling a 87 regular PayPal account transaction. 88 54 89 A payment can be approve()d, which means the act of paying was 55 really performed. It can also fail for any reason .56 90 really performed. It can also fail for any reason, in which case 91 we mark the payment 'failed'. 57 92 """ 58 93 payment_id = schema.TextLine( … … 69 104 70 105 payed_item_id = schema.TextLine( 71 title=u'Payed Item ',106 title=u'Payed Item ID', 72 107 default=None, 73 108 required=True,
Note: See TracChangeset for help on using the changeset viewer.