Ignore:
Timestamp:
23 Jul 2014, 15:42:39 (10 years ago)
Author:
Henrik Bettermann
Message:

If the total amount (amount authorized) is less than 2000 Nairas gateway_amt is 1.5% of the amount authorized.

File:
1 edited

Legend:

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

    r11766 r11768  
    142142            dalash_amt = 6.0
    143143            provider_amt = 9.0
    144             gateway_amt = 15.0
     144            #gateway_amt = 15.0
     145            gateway_amt = round(0.015 * self.context.amount_auth, 2)
    145146        elif self.context.p_category == 'loss_examcard':
    146147            self.pay_item_id = '123'
    147148            dalash_amt = 3.0
    148149            provider_amt = 4.5
    149             gateway_amt = 7.5
     150            #gateway_amt = 7.5
     151            gateway_amt = round(0.015 * self.context.amount_auth, 2)
    150152        elif self.context.p_category == 'loss_result':
    151153            self.pay_item_id = '124'
     
    168170            dalash_amt = 6.0
    169171            provider_amt = 9.0
    170             gateway_amt = 15.0
     172            #gateway_amt = 15.0
     173            gateway_amt = round(0.015 * self.context.amount_auth, 2)
    171174        elif self.context.p_category == 'hnd_conv_brochure':
    172175            self.pay_item_id = '133'
     
    181184            dalash_amt = 3.0
    182185            provider_amt = 4.5
    183             gateway_amt = 7.5
     186            #gateway_amt = 7.5
     187            gateway_amt = round(0.015 * self.context.amount_auth, 2)
    184188            xmldict['institution_acct'] = "1010508401"
    185189            xmldict['institution_bank_id'] = '117'
     
    315319                dalash_amt = 6.0
    316320                provider_amt = 9.0
    317                 gateway_amt = 15.0
     321                #gateway_amt = 15.0
     322                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    318323            elif self.applicant.special_application == 'loss_examcard':
    319324                self.pay_item_id = '123'
    320325                dalash_amt = 3.0
    321326                provider_amt = 4.5
    322                 gateway_amt = 7.5
     327                #gateway_amt = 7.5
     328                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    323329            elif self.applicant.special_application == 'loss_result':
    324330                self.pay_item_id = '124'
     
    341347                dalash_amt = 6.0
    342348                provider_amt = 9.0
    343                 gateway_amt = 15.0
     349                #gateway_amt = 15.0
     350                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    344351            elif self.context.p_category == 'hnd_conv_brochure':
    345352                self.pay_item_id = '133'
     
    354361                dalash_amt = 3.0
    355362                provider_amt = 4.5
    356                 gateway_amt = 7.5
     363                #gateway_amt = 7.5
     364                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    357365                xmldict['institution_acct'] = "1010508401"
    358366                xmldict['institution_bank_id'] = '117'
Note: See TracChangeset for help on using the changeset viewer.