Changeset 16731 for main/kofacustom.unidel/trunk/src
- Timestamp:
- 2 Dec 2021, 13:28:04 (3 years ago)
- Location:
- main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py
r16723 r16731 31 31 from kofacustom.unidel.interfaces import MessageFactory as _ 32 32 33 PRODUCT_ID = ' ' # must be provided by Interswitch33 PRODUCT_ID = '6207' # must be provided by Interswitch 34 34 SITE_NAME = 'unidel.waeup.org' 35 35 PROVIDER_ACCT = '00000000' … … 38 38 INSTITUTION_NAME = 'UNIDEL' 39 39 CURRENCY = '566' 40 GATEWAY_AMT = 300.041 MAC = ' ' # must be provided by Interswitch40 GATEWAY_AMT = 250.0 41 MAC = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3' # must be provided by Interswitch 42 42 43 43 #POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay' … … 89 89 xmldict['provider_item_name'] = PROVIDER_ITEM_NAME 90 90 # Institution data 91 xmldict['institution_acct'] = ' 00000000'92 xmldict['institution_bank_id'] = ' 00'91 xmldict['institution_acct'] = '1216063205' 92 xmldict['institution_bank_id'] = '117' 93 93 provider_amt = 0.0 94 self.pay_item_id = ' 0000' # must be provided by Interswitch94 self.pay_item_id = '101' # must be provided by Interswitch 95 95 xmldict['provider_amt'] = 100 * provider_amt 96 96 xmldict['institution_item_name'] = self.context.category … … 134 134 site_name = SITE_NAME 135 135 currency = CURRENCY 136 pay_item_id = ' 0000' # must be provided by Interswitch136 pay_item_id = '101' # must be provided by Interswitch 137 137 product_id = PRODUCT_ID 138 138 mac = MAC … … 159 159 xmldict = {} 160 160 provider_amt = 400.0 161 xmldict['institution_acct'] = ' 00000000000'162 xmldict['institution_bank_id'] = ' 00'161 xmldict['institution_acct'] = '1216063205' 162 xmldict['institution_bank_id'] = '117' 163 163 xmldict['detail_ref'] = self.context.p_id 164 164 xmldict['provider_amt'] = 100 * provider_amt -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py
r16721 r16731 73 73 self.payment_url = self.browser.url 74 74 self.browser.getLink("Pay via Interswitch", index=0).click() 75 self.assertTrue('<input type="hidden" name="pay_item_id" value=" 0000" />' in75 self.assertTrue('<input type="hidden" name="pay_item_id" value="101" />' in 76 76 self.browser.contents) 77 77 self.assertEqual(self.student.current_mode, 'ug_ft') 78 78 self.assertTrue( 79 '<input type="hidden" name="amount" value="40 15000" />' in80 self.browser.contents) 81 self.assertTrue( 82 'item_name="School Fee" item_amt="4000000" bank_id=" 00" acct_num="00000000"' in79 '<input type="hidden" name="amount" value="4025000" />' in 80 self.browser.contents) 81 self.assertTrue( 82 'item_name="School Fee" item_amt="4000000" bank_id="117" acct_num="1216063205"' in 83 83 self.browser.contents) 84 84 … … 94 94 self.browser.open(self.payments_path + '/xyz') 95 95 self.browser.getLink("Pay via Interswitch", index=0).click() 96 self.assertMatches('...<input type="hidden" name="pay_item_id" value=" 0000" />...',96 self.assertMatches('...<input type="hidden" name="pay_item_id" value="101" />...', 97 97 self.browser.contents) 98 98 self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.