- Timestamp:
- 12 Dec 2016, 12:02:31 (8 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/browser.py
r14301 r14336 58 58 currency = CURRENCY 59 59 product_id = PRODUCT_ID 60 mac = ' '60 mac = '9309B5CBF1BFB09693C6F5F578046E3FCAB0A2538C3FE4221A6E63AFD348DE888E655F9C7E9F112151A702B6B09E6A7ACC5B3BF3C701F0C1B0D8EA6C1872AE94' 61 61 62 62 def update(self): … … 74 74 xmldict['provider_item_name'] = PROVIDER_ITEM_NAME 75 75 # Institution data 76 xmldict['institution_acct'] = '00000000' 77 xmldict['institution_bank_id'] = '00' 78 xmldict['institution_amt'] = '0.0' 79 provider_amt = 0.0 76 xmldict['institution_acct'] = '1019684470' 77 xmldict['institution_bank_id'] = '7' 78 provider_amt = 500.0 80 79 self.pay_item_id = '0000' 81 80 xmldict['provider_amt'] = 100 * provider_amt … … 84 83 xmldict['institution_amt'] = 100 * ( 85 84 self.context.amount_auth - provider_amt - GATEWAY_AMT) 85 if self.context.p_category == 'clearance': 86 self.pay_item_id = '102' 87 elif self.context.p_category == 'schoolfee': 88 self.pay_item_id = '103' 86 89 # Interswitch amount is not part of the xml data 87 90 if provider_amt == 0: -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/tests.py
r14035 r14336 68 68 self.browser.contents) 69 69 self.assertMatches( 70 '...<span> 40000.0</span>...',70 '...<span>79500.0</span>...', 71 71 self.browser.contents) 72 72 self.payment_url = self.browser.url 73 73 self.browser.getLink("CollegePAY", index=0).click() 74 self.assertMatches('...<input type="hidden" name="pay_item_id" value=" 0000" />...',74 self.assertMatches('...<input type="hidden" name="pay_item_id" value="103" />...', 75 75 self.browser.contents) 76 76 self.assertMatches('...Total Amount Authorized:...', … … 78 78 self.assertEqual(self.student.current_mode, 'ug_ft') 79 79 self.assertMatches( 80 '...<input type="hidden" name="amount" value=" 4000000" />...',81 self.browser.contents) 82 self.assertMatches( 83 '...item_name="School Fee" item_amt=" 4000000" bank_id="00" acct_num="00000000"...',80 '...<input type="hidden" name="amount" value="7950000" />...', 81 self.browser.contents) 82 self.assertMatches( 83 '...item_name="School Fee" item_amt="7950000" bank_id="7" acct_num="1019684470"...', 84 84 self.browser.contents) 85 85 … … 95 95 self.browser.open(self.payments_path + '/xyz') 96 96 self.browser.getLink("CollegePAY", index=0).click() 97 self.assertMatches('...<input type="hidden" name="pay_item_id" value=" 0000" />...',97 self.assertMatches('...<input type="hidden" name="pay_item_id" value="102" />...', 98 98 self.browser.contents) 99 99 self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.