Changeset 14342 for main/kofacustom.coewarri/trunk/src
- Timestamp:
- 14 Dec 2016, 11:06:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/browser.py
r14336 r14342 68 68 student = self.student 69 69 xmldict = self.xmldict 70 self.pay_item_id = '0000' 70 71 # Provider data 71 72 xmldict['detail_ref'] = self.context.p_id … … 73 74 xmldict['provider_bank_id'] = PROVIDER_BANK_ID 74 75 xmldict['provider_item_name'] = PROVIDER_ITEM_NAME 76 provider_amt = 500.0 75 77 # Institution data 76 78 xmldict['institution_acct'] = '1019684470' 77 79 xmldict['institution_bank_id'] = '7' 78 provider_amt = 500.079 self.pay_item_id = '0000'80 xmldict['provider_amt'] = 100 * provider_amt81 80 xmldict['institution_item_name'] = self.context.category 82 81 xmldict['institution_name'] = INSTITUTION_NAME 82 if self.context.p_category == 'clearance': 83 self.pay_item_id = '102' 84 elif self.context.p_category.startswith('schoolfee'): 85 self.pay_item_id = '103' 86 if self.context.p_category in ('schoolfee', 'schoolfee_1'): 87 provider_amt = 4000.0 88 xmldict['provider_amt'] = 100 * provider_amt 83 89 xmldict['institution_amt'] = 100 * ( 84 90 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' 91 89 92 # Interswitch amount is not part of the xml data 90 93 if provider_amt == 0: … … 174 177 gateway_host = HOST 175 178 gateway_url = URL 179 mac = '9309B5CBF1BFB09693C6F5F578046E3FCAB0A2538C3FE4221A6E63AFD348DE888E655F9C7E9F112151A702B6B09E6A7ACC5B3BF3C701F0C1B0D8EA6C1872AE94' 176 180 177 181 class CustomInterswitchPaymentVerifyWebservicePageStudent( … … 183 187 gateway_host = HOST 184 188 gateway_url = URL 189 mac = '9309B5CBF1BFB09693C6F5F578046E3FCAB0A2538C3FE4221A6E63AFD348DE888E655F9C7E9F112151A702B6B09E6A7ACC5B3BF3C701F0C1B0D8EA6C1872AE94' 185 190 186 191 class CustomInterswitchPaymentRequestWebservicePageApplicant( … … 202 207 gateway_host = HOST 203 208 gateway_url = URL 209 mac = '9309B5CBF1BFB09693C6F5F578046E3FCAB0A2538C3FE4221A6E63AFD348DE888E655F9C7E9F112151A702B6B09E6A7ACC5B3BF3C701F0C1B0D8EA6C1872AE94'
Note: See TracChangeset for help on using the changeset viewer.