Changeset 13378
- Timestamp:
- 2 Nov 2015, 08:48:45 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r13376 r13378 39 39 CURRENCY = '566' 40 40 GATEWAY_AMT = 250.0 41 #QUERY_URL = 'https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx'42 #QUERY_URL = 'https://testwebpay.interswitchng.com/test_paydirect/services/TransactionQueryURL.aspx'43 44 #POST_ACTION = 'https://webpay.interswitchng.com/paydirect/webpay/pay.aspx'45 #POST_ACTION = 'https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx'46 #POST_ACTION = 'https://stageserv.interswitchng.com/test_paydirect/pay'47 41 POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay' 48 42 49 43 HOST = 'webpay.interswitchng.com' 50 #HOST = 'stageserv.interswitchng.com'51 44 HTTPS = True 52 45 53 46 URL = '/paydirect/services/TransactionQueryWs.asmx' 54 #URL = '/test_paydirect/services/TransactionQueryWS.asmx'55 47 httplib.HTTPSConnection.debuglevel = 0 56 48 … … 165 157 166 158 if self.context.p_category == 'schoolfee': 167 if student.faccode == 'FCETA': 168 xmldict['institution_acct'] = '1190118227' 169 xmldict['institution_bank_id'] = '123' 170 else: 171 xmldict['institution_bank_id'] = '7' 172 xmldict['institution_acct'] = '1014847058' 159 xmldict['institution_bank_id'] = '7' 160 xmldict['institution_acct'] = '1014847058' 173 161 if student.current_mode == 'found': 174 162 self.pay_item_id = '103' -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r13374 r13378 109 109 super(InterswitchTestsStudents, self).setUp() 110 110 111 def test_interswitch_form_school_fees(self): 111 def test_interswitch_form_pt_school_fees(self): 112 self.certificate.study_mode = 'ug_pt' 112 113 self.student['studycourse'].entry_session = 2013 113 114 self.student['studycourse'].certificate.school_fee_1 = 51750.0 … … 143 144 self.assertMatches('...Total Amount Authorized:...', 144 145 self.browser.contents) 145 self.assertEqual(self.student.current_mode, 'ug_ ft')146 self.assertEqual(self.student.current_mode, 'ug_pt') 146 147 self.assertMatches( 147 148 '...<input type="hidden" name="amount" value="5175000" />...', … … 152 153 153 154 154 def test_interswitch_form_acceptance_fees(self): 155 self.app['configuration']['2004'].clearance_fee = 43050.0 155 def test_interswitch_form_pt_acceptance_fees(self): 156 self.certificate.study_mode = 'ug_pt' 157 self.app['configuration']['2004'].clearance_fee_pt = 43050.0 156 158 # Manager can access InterswitchForm 157 159 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Note: See TracChangeset for help on using the changeset viewer.