Changeset 9755 for main/waeup.aaue/trunk/src/waeup/aaue/payments
- Timestamp:
- 1 Dec 2012, 10:05:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/payments/interfaces.py
r9327 r9755 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 from zope.interface import Attribute 19 from zope import schema 20 from waeup.kofa.payments.interfaces import IPayment 21 from waeup.kofa.interfaces import SimpleKofaVocabulary 22 from waeup.aaue.interfaces import MessageFactory as _ 18 from kofacustom.nigeria.payments.interfaces import INigeriaOnlinePayment 23 19 24 payment_categories = SimpleKofaVocabulary( 25 (_('School Fee'),'schoolfee'), 26 (_('School Fee 1st instalment'),'schoolfee_1'), 27 (_('School Fee 2nd instalment'),'schoolfee_2'), 28 (_('Clearance'),'clearance'), 29 (_('Bed Allocation'),'bed_allocation'), 30 (_('Hostel Maintenance'),'hostel_maintenance'), 31 (_('Transfer'),'transfer'), 32 (_('Gown'),'gown'), 33 (_('Application Fee'), 'application'), 34 ) 35 36 class ICustomOnlinePayment(IPayment): 20 class ICustomOnlinePayment(INigeriaOnlinePayment): 37 21 """A payment via payment gateways. 38 22 39 This is a copy of INigeriaOnlinePayment40 only for taking the AAUE payment_categories41 into consideration.42 23 """ 43 44 45 p_category = schema.Choice(46 title = _(u'Payment Category'),47 default = u'schoolfee_1',48 vocabulary = payment_categories,49 required = True,50 )51 52 ac = schema.TextLine(53 title = _(u'Activation Code'),54 default = None,55 required = False,56 readonly = False,57 )58 59 r_amount_approved = schema.Float(60 title = _(u'Response Amount Approved'),61 default = 0.0,62 required = False,63 readonly = False,64 )65 66 r_code = schema.TextLine(67 title = _(u'Response Code'),68 default = None,69 required = False,70 readonly = False,71 )72 73 r_desc = schema.TextLine(74 title = _(u'Response Description'),75 default = None,76 required = False,77 readonly = False,78 )79 80 r_pay_reference = schema.TextLine(81 title = _(u'Response Payment Reference'),82 default = None,83 required = False,84 readonly = False,85 )86 87 r_card_num = schema.TextLine(88 title = _(u'Response Card Number'),89 default = None,90 required = False,91 readonly = False,92 )93 94 conf_number = schema.TextLine(95 title = _(u'Confirmation Number'),96 default = None,97 required = False,98 readonly = False,99 )100 101 r_company = schema.Choice(102 title = _(u'Payment Gateway'),103 default = None,104 required = False,105 readonly = False,106 vocabulary = SimpleKofaVocabulary(107 (_('Interswitch'), 'interswitch'),108 (_('eTranzact'), 'etranzact'),)109 )110 111 ICustomOnlinePayment['p_category'].order = ICustomOnlinePayment[112 'p_category'].order
Note: See TracChangeset for help on using the changeset viewer.