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

Add new student fees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.