Changeset 10388
- Timestamp:
- 27 Jun 2013, 07:33:45 (11 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
r9998 r10388 64 64 self.browser.contents) 65 65 self.assertTrue( 66 '<span>12 495.0</span>' in self.browser.contents)66 '<span>12645.0</span>' in self.browser.contents) 67 67 self.payment_url = self.browser.url 68 68 … … 93 93 self.browser.contents) 94 94 self.assertTrue( 95 '<input type="hidden" name="amount" value="12 49500.0" />'96 in self.browser.contents) 97 self.assertTrue( 98 'item_name="School Fee" item_amt="9 34500" bank_id="117" acct_num="1012044015"'95 '<input type="hidden" name="amount" value="1264500.0" />' 96 in self.browser.contents) 97 self.assertTrue( 98 'item_name="School Fee" item_amt="949500" bank_id="117" acct_num="1012044015"' 99 99 in self.browser.contents) 100 100 self.assertTrue( … … 140 140 self.browser.contents) 141 141 self.assertTrue( 142 '<span>4 150.0</span>' in self.browser.contents)142 '<span>4300.0</span>' in self.browser.contents) 143 143 # p_item is not unveiled 144 144 self.assertFalse('Hall 1, Block A, Room 101, Bed A' … … 161 161 self.browser.contents) 162 162 self.assertTrue( 163 '<input type="hidden" name="amount" value="4 15000.0" />'164 in self.browser.contents) 165 self.assertTrue( 166 'item_name="Hostel Maintenance Fee" item_amt="4 00000" bank_id="117" acct_num="1012044132"'163 '<input type="hidden" name="amount" value="430000.0" />' 164 in self.browser.contents) 165 self.assertTrue( 166 'item_name="Hostel Maintenance Fee" item_amt="415000" bank_id="117" acct_num="1012044132"' 167 167 in self.browser.contents) 168 168 # BT does nor charge a fee for maintenance fee … … 196 196 self.browser.contents) 197 197 self.assertTrue( 198 '<span>3 456.0</span>' in self.browser.contents)198 '<span>3606.0</span>' in self.browser.contents) 199 199 self.payment_url = self.browser.url 200 200 self.assertEqual(self.student['payments'][value].provider_amt, 0.0) … … 212 212 self.browser.contents) 213 213 self.assertTrue( 214 '<input type="hidden" name="amount" value="3 45600.0" />' in214 '<input type="hidden" name="amount" value="360600.0" />' in 215 215 self.browser.contents) 216 216 self.assertTrue( 217 'item_name="Acceptance Fee" item_amt="3 30600" bank_id="8" acct_num="2003670143"'217 'item_name="Acceptance Fee" item_amt="345600" bank_id="8" acct_num="2003670143"' 218 218 in self.browser.contents) 219 219 # BT does nor charge a fee for maintenance fee -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r10201 r10388 230 230 self.assertEqual(payment.p_level, 100) 231 231 self.assertEqual(payment.p_session, 2004) 232 self.assertEqual(payment.amount_auth, 12 495.0)232 self.assertEqual(payment.amount_auth, 12645.0) 233 233 self.assertEqual(payment.p_item, u'CERT1') 234 234 self.assertEqual(error, None) … … 243 243 self.assertEqual(payment.p_level, 200) 244 244 self.assertEqual(payment.p_session, 2005) 245 self.assertEqual(payment.amount_auth, 11 545.0)245 self.assertEqual(payment.amount_auth, 11695.0) 246 246 self.assertEqual(payment.p_item, u'CERT1') 247 247 self.assertEqual(error, None) 248 248 249 # UG students pay 65 150249 # UG students pay 65800 250 250 self.certificate.study_mode = 'ug_ft' 251 251 error, payment = utils.setPaymentDetails('schoolfee',self.student) 252 self.assertEqual(payment.amount_auth, 65 650.0)252 self.assertEqual(payment.amount_auth, 65800.0) 253 253 self.assertEqual(error, None) 254 254 … … 265 265 self.assertEqual(payment.p_level, 100) 266 266 self.assertEqual(payment.p_session, 2004) 267 self.assertEqual(payment.amount_auth, 120.0)267 self.assertEqual(payment.amount_auth, 270.0) 268 268 self.assertEqual(payment.p_item, u'CERT1') 269 269 self.assertEqual(error, None) … … 272 272 self.assertEqual(payment.p_level, 100) 273 273 self.assertEqual(payment.p_session, 2004) 274 self.assertEqual(payment.amount_auth, 150.0)274 self.assertEqual(payment.amount_auth, 300.0) 275 275 self.assertEqual(payment.p_item, u'') 276 276 self.assertEqual(error, None) … … 285 285 self.assertEqual(payment.p_level, 100) 286 286 self.assertEqual(payment.p_session, 2004) 287 self.assertEqual(payment.amount_auth, 4 150.0)287 self.assertEqual(payment.amount_auth, 4300.0) 288 288 self.assertEqual(payment.p_item, u'My bed coordinates') 289 289 self.assertEqual(error, None) … … 293 293 self.assertEqual(payment.p_level, 100) 294 294 self.assertEqual(payment.p_session, 2004) 295 self.assertEqual(payment.amount_auth, 2 650.0)295 self.assertEqual(payment.amount_auth, 2800.0) 296 296 self.assertEqual(payment.p_item, u'My bed coordinates') 297 297 self.assertEqual(error, None) … … 300 300 self.assertEqual(payment.p_level, 100) 301 301 self.assertEqual(payment.p_session, 2004) 302 self.assertEqual(payment.amount_auth, 150.0)302 self.assertEqual(payment.amount_auth, 300.0) 303 303 self.assertEqual(payment.p_item, u'') 304 304 self.assertEqual(error, None) … … 307 307 self.assertEqual(payment.p_level, 100) 308 308 self.assertEqual(payment.p_session, 2004) 309 self.assertEqual(payment.amount_auth, 90.0)309 self.assertEqual(payment.amount_auth, 240.0) 310 310 self.assertEqual(payment.p_item, u'') 311 311 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r10026 r10388 27 27 from waeup.kofa.browser.interfaces import IPDFCreator 28 28 from waeup.kofa.students.utils import trans 29 from waeup.fceokene.interswitch.browser import GATEWAY_AMT 29 30 30 31 class CustomStudentsUtils(NigeriaStudentsUtils): … … 253 254 payment.p_level = p_level 254 255 payment.p_current = p_current 255 payment.amount_auth = float(amount) 256 # On June 26, 2013 FCEOkene realized that the Interswitch fee 257 # is deducted from their amount. Therefore, we add this fee here. 258 payment.amount_auth = float(amount) + GATEWAY_AMT 256 259 return None, payment 257 260
Note: See TracChangeset for help on using the changeset viewer.