Ignore:
Timestamp:
25 Mar 2021, 11:24:25 (4 years ago)
Author:
Henrik Bettermann
Message:

Customize payment options.

File:
1 edited

Legend:

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

    r16395 r16434  
    9696        if self.context.p_category in (
    9797            'schoolfee', 'schoolfee40', 'secondinstal'):
    98             xmldict['institution_acct'] = '1011005811'
    99             xmldict['institution_bank_id'] = '117'
    10098            self.pay_item_id = '101'
    10199        elif self.context.p_category == 'book':
    102             xmldict['institution_acct'] = '1013249587'
    103             xmldict['institution_bank_id'] = '117'
    104100            self.pay_item_id = '103'
    105101        elif self.context.p_category == 'parentsconsult':
    106             xmldict['institution_acct'] = '1012355544'
    107             xmldict['institution_bank_id'] = '117'
    108102            self.pay_item_id = '104'
    109103        elif self.context.p_category in (
    110104            'municipal_fresh', 'municipal_returning',
    111105            'transcript_local', 'transcript_overseas', 'transcript'):
    112             xmldict['institution_acct'] = '0040621193'
    113             xmldict['institution_bank_id'] = '31'
    114106            self.pay_item_id = '105'
    115107        else:
    116             xmldict['institution_acct'] = '1011050158'
    117             xmldict['institution_bank_id'] = '117'
    118108            self.pay_item_id = '102'
    119109        if self.context.p_category in (
     
    124114            provider_amt = 5000.0
    125115        if self.context.p_category.startswith('jupeb'):
    126             xmldict['institution_acct'] = '0787077169'
    127             xmldict['institution_bank_id'] = '31'
    128116            self.pay_item_id = '102'
    129117        xmldict['provider_amt'] = 100 * provider_amt
     
    132120        xmldict['institution_amt'] = 100 * self.context.net_amt - (
    133121            100 * provider_amt)
     122
     123        if self.context.p_option == 'access':
     124            xmldict['institution_acct'] = '0040484781'
     125            xmldict['institution_bank_id'] = '31'
     126        elif self.context.p_option == 'first':
     127            xmldict['institution_acct'] = '2021420049'
     128            xmldict['institution_bank_id'] = '8'
     129        elif self.context.p_option == 'zenith':
     130            xmldict['institution_acct'] = '1011005811'
     131            xmldict['institution_bank_id'] = '117'
     132        else:
     133            xmldict['institution_acct'] = '0040484781'
     134            xmldict['institution_bank_id'] = '31'
     135
    134136        if provider_amt == 0:
    135137            xmltext = """<payment_item_detail>
Note: See TracChangeset for help on using the changeset viewer.