Ignore:
Timestamp:
8 Nov 2018, 12:45:03 (6 years ago)
Author:
Henrik Bettermann
Message:

Implement special application (for supplementary payments).

File:
1 edited

Legend:

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

    r15137 r15218  
    4949httplib.HTTPSConnection.debuglevel = 0
    5050HTTPS = True
     51
     52SPECIAL_PAYMENT_PARAMS = {
     53
     54    'conv_nd': ('101', 2000.0, '0031913976', '121'),
     55    'conv_hnd': ('101', 2000.0, '0031913976', '121'),
     56    }
     57
    5158
    5259class CustomInterswitchPageStudent(InterswitchPageStudent):
     
    155162        xmldict['institution_item_name'] = self.context.category
    156163        xmldict['institution_name'] = INSTITUTION_NAME
     164        if self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
     165            self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0]
     166            provider_amt = SPECIAL_PAYMENT_PARAMS[self.context.p_category][1]
     167            xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][2]
     168            xmldict['institution_bank_id'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3]
    157169        # Interswitch amount is not part of the xml data
    158170        if provider_amt == 0:
Note: See TracChangeset for help on using the changeset viewer.