Ignore:
Timestamp:
9 Mar 2017, 10:42:42 (8 years ago)
Author:
Henrik Bettermann
Message:

Enable balance payments. Add gateway amount to balance amount. No other surcharges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r14329 r14616  
    126126        xmldict['institution_acct'] = '0838798044'
    127127        xmldict['institution_bank_id'] = '76'
    128         if self.context.p_category == 'schoolfee' \
     128        if self.context.p_item == 'Balance':
     129            self.pay_item_id = '000'
     130            dalash_amt = 0.0
     131            provider_amt = 0.0
     132            xmldict['institution_acct'] = '0838798044'
     133            xmldict['institution_bank_id'] = '76'
     134        elif self.context.p_category == 'schoolfee' \
    129135            or self.context.p_category.startswith('carryover'):
    130136            self.pay_item_id = '101'
     
    201207        # Interswitch amount is not part of the xml data
    202208
    203         if 'maintenance' in self.context.p_category:
     209        if 'maintenance' in self.context.p_category \
     210            or self.context.p_item == 'Balance':
    204211            xmltext = """<payment_item_detail>
    205212<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
Note: See TracChangeset for help on using the changeset viewer.