Changeset 16736 for main/kofacustom.unidel/trunk/src/kofacustom
- Timestamp:
- 6 Dec 2021, 23:16:11 (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
r16735 r16736 31 31 from kofacustom.unidel.interfaces import MessageFactory as _ 32 32 33 PRODUCT_ID = ' 6207' # must be provided by Interswitch33 PRODUCT_ID = '22153701' # must be provided by Interswitch 34 34 SITE_NAME = 'unidel.waeup.org' 35 35 PROVIDER_ACCT = '0213065415' … … 38 38 INSTITUTION_NAME = 'UNIDEL' 39 39 CURRENCY = '566' 40 GATEWAY_AMT = 300.0 41 MAC = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3' # must be provided by Interswitch 42 43 #POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay' 44 POST_ACTION = 'https://sandbox.interswitchng.com/webpay/pay' 45 #HOST = 'webpay.interswitchng.com' 46 HOST = 'sandbox.interswitchng.com' 47 #URL = '/paydirect/api/v1/gettransaction.json' 48 URL = '/webpay/api/v1/gettransaction.json' 40 GATEWAY_AMT = 250.0 41 #MAC = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3' 42 MAC = 'Lfj58PyWS6MvPz65zIbofZNoAn89fZAjtnsEWbTof73OyHQH7rpJPHWD2m4cekDoowJ8nqQCn6ay2lopzKBOekFsMfzkXG6KYGRuyhMQq4bK7wDNaWqpxeZl3fMumNmi' 43 44 POST_ACTION = 'https://webpay.interswitchng.com/collections/w/pay' 45 #POST_ACTION = 'https://sandbox.interswitchng.com/webpay/pay' 46 HOST = 'webpay.interswitchng.com' 47 #HOST = 'sandbox.interswitchng.com' 48 URL = '/collections/api/v1/gettransaction.json' 49 #URL = '/webpay/api/v1/gettransaction.json' 49 50 50 51 httplib.HTTPSConnection.debuglevel = 0 … … 92 93 xmldict['institution_bank_id'] = '117' 93 94 provider_amt = 0.0 94 self.pay_item_id = ' 101' # must be provided by Interswitch95 self.pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch 95 96 xmldict['provider_amt'] = 100 * provider_amt 96 97 xmldict['institution_item_name'] = self.context.category … … 134 135 site_name = SITE_NAME 135 136 currency = CURRENCY 136 pay_item_id = ' 101' # must be provided by Interswitch137 pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch 137 138 product_id = PRODUCT_ID 138 139 mac = MAC -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py
r16731 r16736 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="101" />' in75 self.assertTrue('value="Default_Payable_MX47126" />' in 76 76 self.browser.contents) 77 77 self.assertEqual(self.student.current_mode, 'ug_ft') … … 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=" 101" />...',96 self.assertMatches('...<input type="hidden" name="pay_item_id" value="Default_Payable_MX47126" />...', 97 97 self.browser.contents) 98 98 self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.