Ignore:
Timestamp:
27 Oct 2016, 09:29:58 (8 years ago)
Author:
Henrik Bettermann
Message:

gbenga ticket #169: Actually, all transactions with value <=5000 attract an Interswitch fee of 1.5% while transactions values >5000 attract a fee of 300 naira.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
Files:
2 edited

Legend:

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

    r14218 r14230  
    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 <= 2000.0:
     168            if self.context.amount_auth <= 5000.0:
    169169                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    170170        elif 'maintenance' in self.context.p_category:
     
    178178            xmldict['institution_acct'] = "0106259811"
    179179            xmldict['institution_bank_id'] = '10'
    180             dalash_amt = 200.0
    181             provider_amt = 300.0
     180            if self.context.amount_auth <= 5000.0:
     181                gateway_amt = round(0.015 * self.context.amount_auth, 2)
    182182        else:
    183183            xmldict['institution_acct'] = "0000000000000"
     
    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 <= 2000.0:
     280                if self.context.amount_auth <= 5000.0:
    281281                    gateway_amt = round(0.015 * self.context.amount_auth, 2)
    282282        xmldict['dalash_amt'] = 100 * dalash_amt
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r14218 r14230  
    277277        self.assertEqual(self.student['payments'][value].thirdparty_amt, 200.0)
    278278
    279         self.app['configuration']['2004'].transcript_local_fee = 5000.0
     279        self.app['configuration']['2004'].transcript_local_fee = 6000.0
    280280        self.browser.open(self.payments_path + '/addop')
    281281        self.browser.getControl(name="form.p_category").value = ['transcript_local']
     
    285285        self.browser.getLink(value).click()
    286286        self.assertMatches('...Amount Authorized...', self.browser.contents)
    287         self.assertTrue('<span>5000.0</span>' in self.browser.contents)
    288         self.payment_url = self.browser.url
    289         self.browser.getLink("CollegePAY", index=0).click()
    290         self.assertEqual(self.student['payments'][value].amount_auth, 5000.0)
     287        self.assertTrue('<span>6000.0</span>' in self.browser.contents)
     288        self.payment_url = self.browser.url
     289        self.browser.getLink("CollegePAY", index=0).click()
     290        self.assertEqual(self.student['payments'][value].amount_auth, 6000.0)
    291291        self.assertEqual(self.student['payments'][value].provider_amt, 300.0)
    292292        self.assertEqual(self.student['payments'][value].gateway_amt, 300.0)
Note: See TracChangeset for help on using the changeset viewer.