Changeset 15761


Ignore:
Timestamp:
6 Nov 2019, 16:59:33 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to nigeria package.

Disable FecEx? fee.

File:
1 edited

Legend:

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

    r15746 r15761  
    106106            self.redirect(self.url(self.context, '@@index'))
    107107            return
     108        self.context.r_company = u'interswitch'
    108109        provider_amt = 2000.0
    109110        fedex_amt = 0.0
     
    128129                    self.institution_acct = '5210006575'
    129130                    self.institution_bank_id = '51'
    130                 if self.applicant.applicant_id[:6] in ('trans1', 'trans6'):
    131                     fedex_amt = 10500.0
     131                #if self.applicant.applicant_id[:6] in ('trans1', 'trans6'):
     132                #    fedex_amt = 10500.0
    132133                if self.context.p_category == 'app_balance':
    133134                    provider_amt = 0.0
     
    169170
    170171        if fedex_amt:
    171 
    172 
    173 
    174172            xmltext = """<payment_item_detail>
    175173<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
     
    208206                )
    209207        self.context.p_split_data = xmlitems
     208        self.amount_auth = int(100 * self.context.amount_auth)
    210209        hashargs = (
    211210            self.context.p_id +
     
    231230    def update(self):
    232231        error = self.init_update()
    233 
    234232        if error:
    235233            self.flash(error, type='danger')
    236234            self.redirect(self.url(self.context, '@@index'))
    237235            return
    238 
     236        self.context.r_company = u'interswitch'
    239237        student = self.student
    240238        p_session = self.context.p_session
     
    649647        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
    650648        self.context.provider_amt = provider_amt
    651         self.context.gateway_amt = self.amount_auth - gateway_net_amt(
    652             self.amount_auth)
     649        self.context.gateway_amt = self.context.amount_auth - gateway_net_amt(
     650            self.context.amount_auth)
    653651        xmlitems = ''
    654652        xmldoc = minidom.parseString(xmltext)
     
    663661                )
    664662        self.context.p_split_data = xmlitems
     663        self.amount_auth = int(100 * self.context.amount_auth)
    665664        hashargs = (
    666665            self.context.p_id +
Note: See TracChangeset for help on using the changeset viewer.