Ignore:
Timestamp:
12 Dec 2016, 12:02:31 (8 years ago)
Author:
Henrik Bettermann
Message:

Configure schoolfee and clearance payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/browser.py

    r14301 r14336  
    5858    currency = CURRENCY
    5959    product_id = PRODUCT_ID
    60     mac = ''
     60    mac = '9309B5CBF1BFB09693C6F5F578046E3FCAB0A2538C3FE4221A6E63AFD348DE888E655F9C7E9F112151A702B6B09E6A7ACC5B3BF3C701F0C1B0D8EA6C1872AE94'
    6161
    6262    def update(self):
     
    7474        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    7575        # Institution data
    76         xmldict['institution_acct'] = '00000000'
    77         xmldict['institution_bank_id'] = '00'
    78         xmldict['institution_amt'] = '0.0'
    79         provider_amt = 0.0
     76        xmldict['institution_acct'] = '1019684470'
     77        xmldict['institution_bank_id'] = '7'
     78        provider_amt = 500.0
    8079        self.pay_item_id = '0000'
    8180        xmldict['provider_amt'] = 100 * provider_amt
     
    8483        xmldict['institution_amt'] = 100 * (
    8584            self.context.amount_auth - provider_amt - GATEWAY_AMT)
     85        if self.context.p_category == 'clearance':
     86            self.pay_item_id = '102'
     87        elif self.context.p_category == 'schoolfee':
     88            self.pay_item_id = '103'
    8689        # Interswitch amount is not part of the xml data
    8790        if provider_amt == 0:
Note: See TracChangeset for help on using the changeset viewer.