Ignore:
Timestamp:
3 Dec 2018, 11:58:27 (6 years ago)
Author:
Henrik Bettermann
Message:

Fix xmldict.

File:
1 edited

Legend:

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

    r15231 r15259  
    159159        xmldict['provider_bank_id'] = PROVIDER_BANK_ID
    160160        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    161         xmldict['institution_amt'] = 100 * (self.context.amount_auth - provider_amt - GATEWAY_AMT)
     161        xmldict['institution_amt'] = 100 * (
     162            self.context.amount_auth - provider_amt - GATEWAY_AMT)
    162163        xmldict['institution_item_name'] = self.context.category
    163164        xmldict['institution_name'] = INSTITUTION_NAME
    164165        if self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
    165166            self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0]
     167            xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[
     168                self.context.p_category][2]
     169            xmldict['institution_bank_id'] = SPECIAL_PAYMENT_PARAMS[
     170                self.context.p_category][3]
    166171            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]
     172            xmldict['institution_amt'] = 100 * (
     173                self.context.amount_auth - provider_amt - GATEWAY_AMT)
     174            xmldict['provider_amt'] = 100 * provider_amt
    169175        # Interswitch amount is not part of the xml data
    170176        if provider_amt == 0:
Note: See TracChangeset for help on using the changeset viewer.