Changeset 14230 for main/waeup.kwarapoly/trunk/src
- Timestamp:
- 27 Oct 2016, 09:29:58 (8 years ago)
- 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 166 166 xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3] 167 167 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: 169 169 gateway_amt = round(0.015 * self.context.amount_auth, 2) 170 170 elif 'maintenance' in self.context.p_category: … … 178 178 xmldict['institution_acct'] = "0106259811" 179 179 xmldict['institution_bank_id'] = '10' 180 dalash_amt = 200.0181 provider_amt = 300.0180 if self.context.amount_auth <= 5000.0: 181 gateway_amt = round(0.015 * self.context.amount_auth, 2) 182 182 else: 183 183 xmldict['institution_acct'] = "0000000000000" … … 278 278 xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3] 279 279 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: 281 281 gateway_amt = round(0.015 * self.context.amount_auth, 2) 282 282 xmldict['dalash_amt'] = 100 * dalash_amt -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r14218 r14230 277 277 self.assertEqual(self.student['payments'][value].thirdparty_amt, 200.0) 278 278 279 self.app['configuration']['2004'].transcript_local_fee = 5000.0279 self.app['configuration']['2004'].transcript_local_fee = 6000.0 280 280 self.browser.open(self.payments_path + '/addop') 281 281 self.browser.getControl(name="form.p_category").value = ['transcript_local'] … … 285 285 self.browser.getLink(value).click() 286 286 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) 291 291 self.assertEqual(self.student['payments'][value].provider_amt, 300.0) 292 292 self.assertEqual(self.student['payments'][value].gateway_amt, 300.0)
Note: See TracChangeset for help on using the changeset viewer.