Ignore:
Timestamp:
4 Nov 2016, 06:03:08 (8 years ago)
Author:
Henrik Bettermann
Message:

Apply the 1.5% fee to specific pay_item_ids instead of fee amount limits.

File:
1 edited

Legend:

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

    r14254 r14257  
    166166            xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3]
    167167            xmldict['institution_bank_id'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][4]
    168             if self.context.amount_auth <= 2030.0:
    169                 gateway_amt = round(0.015 * self.context.amount_auth, 2)
    170168        elif 'maintenance' in self.context.p_category:
    171169            self.pay_item_id = '102'
     
    178176            xmldict['institution_acct'] = "0106259811"
    179177            xmldict['institution_bank_id'] = '10'
    180             if self.context.amount_auth <= 5077.0:
    181                 gateway_amt = round(0.015 * self.context.amount_auth, 2)
    182178        else:
    183179            xmldict['institution_acct'] = "0000000000000"
    184180            xmldict['institution_bank_id'] = '0'
     181
     182        if self.pay_item_id in ('122', '123', '132', '137', '141',
     183                                '142', '143', '144', '146', '147',):
     184                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    185185
    186186        xmldict['dalash_amt'] = 100 * dalash_amt
     
    278278                xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3]
    279279                xmldict['institution_bank_id'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][4]
    280                 if self.context.amount_auth <= 2030.0:
    281                     gateway_amt = round(0.015 * self.context.amount_auth, 2)
     280
     281        if self.pay_item_id in ('122', '123', '132', '137', '141',
     282                                '142', '143', '144', '146', '147',):
     283                gateway_amt = round(0.015 * self.context.amount_auth, 2)
     284
    282285        xmldict['dalash_amt'] = 100 * dalash_amt
    283286        xmldict['detail_ref'] = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.