Ignore:
Timestamp:
12 Jan 2024, 10:08:38 (8 months ago)
Author:
Henrik Bettermann
Message:

Configure bank account for the CDL portal.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
2 edited

Legend:

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

    r17585 r17665  
    136136        # Overwrite above selection
    137137
    138         if self.context.p_category == 'book':
     138        if grok.getSite().__name__ == 'iuokada-cdl':
     139            xmldict['institution_acct'] = '1828332878'
     140            xmldict['institution_bank_id'] = '31'
     141        elif self.context.p_category == 'book':
    139142            xmldict['institution_acct'] = '1228744877'
    140143            xmldict['institution_bank_id'] = '117'
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py

    r17664 r17665  
    244244    def COMBI_PAYMENT_CATEGORIES(self):
    245245        if grok.getSite().__name__ == 'iuokada-cdl':
    246             cpc = deepcopy(self.CDLPORTAL_COMBI_PAYMENT_CATEGORIES)
    247             return cpc
    248         cpc = deepcopy(self._COMBI_PAYMENT_CATEGORIES)
    249         return cpc
     246            return self.CDLPORTAL_COMBI_PAYMENT_CATEGORIES
     247        return self._COMBI_PAYMENT_CATEGORIES
    250248
    251249    CDLPORTAL_COMBI_PAYMENT_CATEGORIES = {
     
    313311        }
    314312
    315     PAYMENT_OPTIONS = {
     313    @property
     314    def PAYMENT_OPTIONS(self):
     315        if grok.getSite().__name__ == 'iuokada-cdl':
     316            return dict()
     317        return self._PAYMENT_OPTIONS
     318
     319    _PAYMENT_OPTIONS = {
    316320        'first': 'First Bank Debit Card',
    317321        'access': 'Access Bank Debit Card',
Note: See TracChangeset for help on using the changeset viewer.