Changeset 15068 for main/kofacustom.dspg/trunk/src
- Timestamp:
- 30 Jun 2018, 06:01:16 (6 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r15022 r15068 307 307 provider_amt = 500.0 308 308 gateway_amt = GATEWAY_AMT 309 xmldict['institution_acct'] = ' 00000000'310 xmldict['institution_bank_id'] = ' 00'311 if self.applicant.__parent__.application_category in ('ndft', 'hndft'):312 xmldict['institution_acct'] = '0010761873'313 xmldict['institution_bank_id'] = '11'314 elif self.applicant.__parent__.application_category in (315 'ndpt', 'hndpt', 'ndwe', 'hndwe'):316 xmldict['institution_acct'] = '1015220292'317 xmldict['institution_bank_id'] = '117'318 elif self.applicant.applicant_id.startswith('special'):309 xmldict['institution_acct'] = '5210039869' 310 xmldict['institution_bank_id'] = '51' 311 #if self.applicant.__parent__.application_category in ('ndft', 'hndft'): 312 # xmldict['institution_acct'] = '0010761873' 313 # xmldict['institution_bank_id'] = '11' 314 #elif self.applicant.__parent__.application_category in ( 315 # 'ndpt', 'hndpt', 'ndwe', 'hndwe'): 316 # xmldict['institution_acct'] = '1015220292' 317 # xmldict['institution_bank_id'] = '117' 318 if self.applicant.applicant_id.startswith('special'): 319 319 if self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys(): 320 320 self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0] -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
r14964 r15068 372 372 self.browser.getControl("Add online").click() 373 373 self.browser.getLink("CollegePAY", index=0).click() 374 self.assertTrue('<item_detail item_id="1" item_name="Application 1" item_amt="15000" bank_id=" 117" acct_num="1015220292" />'374 self.assertTrue('<item_detail item_id="1" item_name="Application 1" item_amt="15000" bank_id="51" acct_num="5210039869" />' 375 375 in self.browser.contents) 376 376 self.assertTrue('<item_detail item_id="2" item_name="Application 2" item_amt="10000" bank_id="123" acct_num="1002883141" />'
Note: See TracChangeset for help on using the changeset viewer.