Ignore:
Timestamp:
24 May 2018, 08:02:17 (6 years ago)
Author:
Henrik Bettermann
Message:

Add new student fees.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interfaces.py

    r14942 r15021  
    302302        )
    303303
     304    sports_fee = schema.Float(
     305        title = _(u'Sports Clearance Levy'),
     306        default = 0.0,
     307        required = True,
     308        )
     309
     310    siwes_fee = schema.Float(
     311        title = _(u'SIWES Fee'),
     312        default = 0.0,
     313        required = True,
     314        )
     315
     316    eed_fee = schema.Float(
     317        title = _(u'EED Fee'),
     318        default = 0.0,
     319        required = True,
     320        )
     321
     322    olevel_results_fee = schema.Float(
     323        title = _(u'O\' Level Results Verification'),
     324        default = 0.0,
     325        required = True,
     326        )
     327
    304328    def getSessionString():
    305329        """Returns the session string from the vocabulary.
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py

    r14964 r15021  
    3838CURRENCY = '566'
    3939GATEWAY_AMT = 250.0
     40MAC = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
    4041
    4142POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
     
    111112    currency = CURRENCY
    112113    product_id = PRODUCT_ID
    113     mac = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
     114    mac = MAC
    114115    pay_item_id = '000'
    115116
     
    156157            xmldict['institution_acct'] = '2006612782'
    157158            xmldict['institution_bank_id'] = '8'
     159        elif self.context.p_category == 'sports':
     160            self.pay_item_id = '110'
     161            xmldict['institution_acct'] = '6060300688'
     162            xmldict['institution_bank_id'] = '51'
     163        elif self.context.p_category == 'siwes':
     164            self.pay_item_id = '111'
     165            xmldict['institution_acct'] = '1001174679'
     166            xmldict['institution_bank_id'] = '123'
     167        elif self.context.p_category == 'eed':
     168            self.pay_item_id = '112'
     169            xmldict['institution_acct'] = '0039782431'
     170            xmldict['institution_bank_id'] = '11'
     171        elif self.context.p_category == 'olevel_results':
     172            self.pay_item_id = '113'
     173            xmldict['institution_acct'] = '2015327204'
     174            xmldict['institution_bank_id'] = '8'
    158175        elif self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
    159176            self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0]
     
    271288    pay_item_id = '101' # must be provided by Interswitch
    272289    product_id = PRODUCT_ID
    273     mac = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
     290    mac = MAC
    274291
    275292    def update(self):
     
    353370    gateway_host = HOST
    354371    gateway_url = URL
    355     mac = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
     372    mac = MAC
    356373
    357374class CustomInterswitchPaymentVerifyWebservicePageStudent(
     
    363380    gateway_host = HOST
    364381    gateway_url = URL
    365     mac = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
     382    mac = MAC
    366383
    367384class CustomInterswitchPaymentRequestWebservicePageApplicant(
     
    373390    gateway_host = HOST
    374391    gateway_url = URL
    375     mac = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
     392    mac = MAC
    376393
    377394class CustomInterswitchPaymentVerifyWebservicePageApplicant(
     
    383400    gateway_host = HOST
    384401    gateway_url = URL
    385     mac = 'D43ED93B7A307B152C7111D04E1F384428057CD1E75428D3A4C5631C28ACB9C8C822A88CA76DEDC5F9A520CF4BFDB2824FF8B207AAFC667DF3CBB13685B66627'
     402    mac = MAC
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/utils/utils.py

    r14942 r15021  
    106106        'ijmb_result':'IJMB Result',
    107107        'gown': 'Gown Hire Fee',
     108        'sports': 'Sports Clearance Levy',
     109        'siwes': 'SIWES Fee',
     110        'eed': 'EED Fee',
     111        'olevel_results': 'O\' Level Results Verification',
    108112        }
    109113
     
    152156        #'nysc_id_card': 'NYSC ID Card',
    153157        #'ijmb_result':'IJMB Result',
     158        'sports': 'Sports Clearance Levy',
     159        'siwes': 'SIWES Fee',
     160        'eed': 'EED Fee',
     161        'olevel_results': 'O\' Level Results Verification',
    154162        }
    155163
Note: See TracChangeset for help on using the changeset viewer.