- Timestamp:
- 19 Oct 2016, 11:04:49 (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
r14074 r14218 88 88 'utme_cbt': ('143', 6.0, 9.0, '0106259811', '10'), 89 89 'nysc_id_card': ('144', 6.0, 9.0, '0106259811', '10'), 90 'ijmb_result': ('147', 200.0, 300.0, '0106259811', '10'), 90 91 } 91 92 … … 173 174 dalash_amt = 0.0 174 175 provider_amt = 0.0 176 elif 'clearance' in self.context.p_category: 177 self.pay_item_id = '146' 178 xmldict['institution_acct'] = "0106259811" 179 xmldict['institution_bank_id'] = '10' 180 dalash_amt = 200.0 181 provider_amt = 300.0 175 182 else: 176 183 xmldict['institution_acct'] = "0000000000000" -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r14074 r14218 110 110 self.assertMatches('...Amount Authorized...', 111 111 self.browser.contents) 112 self.assertTrue('<span> 40700.0</span>' in self.browser.contents)112 self.assertTrue('<span>55500.0</span>' in self.browser.contents) 113 113 self.payment_url = self.browser.url 114 114 … … 144 144 self.assertMatches('...Amount Authorized...', self.browser.contents) 145 145 self.assertTrue( 146 '<span> 31500.0</span>' in self.browser.contents)146 '<span>42500.0</span>' in self.browser.contents) 147 147 self.payment_url = self.browser.url 148 148 … … 159 159 self.browser.contents) 160 160 self.assertTrue( 161 '<input type="hidden" name="amount" value=" 3150000" />' in162 self.browser.contents) 163 self.assertTrue( 164 'item_name="School Fee" item_amt=" 2820000" bank_id="10" acct_num="0106259811"' in161 '<input type="hidden" name="amount" value="4250000" />' in 162 self.browser.contents) 163 self.assertTrue( 164 'item_name="School Fee" item_amt="3920000" bank_id="10" acct_num="0106259811"' in 165 165 self.browser.contents) 166 166 self.assertTrue( … … 386 386 self.browser.open(self.payments_path + '/xyz') 387 387 self.browser.getLink("CollegePAY", index=0).click() 388 self.assertTrue('<input type="hidden" name="pay_item_id" value=" 000" />'388 self.assertTrue('<input type="hidden" name="pay_item_id" value="146" />' 389 389 in self.browser.contents) 390 390 self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.