Changeset 11478 for main/waeup.uniben/trunk/src
- Timestamp:
- 7 Mar 2014, 18:12:42 (11 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r10741 r11478 106 106 if student.current_mode.endswith('_ft'): 107 107 self.pay_item_id = '5700' 108 if student.current_mode in ('ug_ft','de_ft',' ct_ft','ume_ft'):108 if student.current_mode in ('ug_ft','de_ft','ume_ft'): 109 109 xmldict['institution_acct'] = '2017506430' 110 110 xmldict['institution_bank_id'] = '8' 111 elif student.current_mode in ('dp_ft' ):112 xmldict['institution_acct'] = ' 9201805071'111 elif student.current_mode in ('dp_ft','dp_pt','ct_pt','ct_ft'): 112 xmldict['institution_acct'] = '0009598853' 113 113 xmldict['institution_bank_id'] = '17' 114 114 elif student.current_mode in ('pg_ft'): 115 xmldict['institution_acct'] = ' 5330832799'115 xmldict['institution_acct'] = '6230033428' 116 116 xmldict['institution_bank_id'] = '51' 117 117 elif student.current_mode.endswith('_pt'): 118 118 self.pay_item_id = '5701' 119 if student.current_mode in ('ug_pt','de_pt' ,'ct_pt'):119 if student.current_mode in ('ug_pt','de_pt'): 120 120 xmldict['institution_acct'] = '0122009929' 121 121 xmldict['institution_bank_id'] = '16' 122 elif student.current_mode in ('dp_pt'):123 xmldict['institution_acct'] = '9201805071'124 xmldict['institution_bank_id'] = '17'125 122 elif student.current_mode in ('pg_pt'): 126 xmldict['institution_acct'] = ' 0031716047'127 xmldict['institution_bank_id'] = '1 0'123 xmldict['institution_acct'] = '1013766956' 124 xmldict['institution_bank_id'] = '117' 128 125 elif self.context.p_category == 'clearance': 129 126 self.pay_item_id = '5702' … … 132 129 xmldict['institution_acct'] = '5210007943' 133 130 xmldict['institution_bank_id'] = '51' 134 elif student.current_mode == 'pg_ft': 135 xmldict['institution_acct'] = '5330832799' 136 xmldict['institution_bank_id'] = '51' 137 elif student.current_mode == 'pg_pt': 131 else: 132 xmldict['institution_bank_id'] = '10' 138 133 xmldict['institution_acct'] = '0031716047' 139 xmldict['institution_bank_id'] = '10'140 elif student.current_mode == 'dp_pt':141 xmldict['institution_acct'] = '9201805071'142 xmldict['institution_bank_id'] = '17'143 else:144 xmldict['institution_bank_id'] = '7'145 xmldict['institution_acct'] = '1003475516'146 134 elif self.context.p_category == 'gown': 147 135 self.pay_item_id = '5704' 148 xmldict['institution_bank_id'] = ' 7'149 xmldict['institution_acct'] = ' 1016232382'136 xmldict['institution_bank_id'] = '16' 137 xmldict['institution_acct'] = '0122011401' 150 138 elif self.context.p_category.startswith('hostel_maintenance'): 151 139 self.pay_item_id = '5705' 152 xmldict['institution_bank_id'] = '1 29'153 xmldict['institution_acct'] = '00 14414547'140 xmldict['institution_bank_id'] = '17' 141 xmldict['institution_acct'] = '0009598925' 154 142 155 143 xmldict['provider_amt'] = 100 * provider_amt … … 261 249 product_id = PRODUCT_ID 262 250 gateway_host = HOST 263 gateway_url = URL 251 gateway_url = URL -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r10902 r11478 195 195 self.browser.contents) 196 196 self.assertMatches( 197 '...<item_detail item_id="1" item_name="Gown Hire Fee" item_amt="8400" bank_id=" 7" acct_num="1016232382" />...',197 '...<item_detail item_id="1" item_name="Gown Hire Fee" item_amt="8400" bank_id="16" acct_num="0122011401" />...', 198 198 self.browser.contents) 199 199 self.assertFalse( … … 222 222 self.browser.contents) 223 223 self.assertMatches( 224 '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="1 29" acct_num="0014414547" />...',224 '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="17" acct_num="0009598925" />...', 225 225 self.browser.contents) 226 226 self.assertFalse(
Note: See TracChangeset for help on using the changeset viewer.