Changeset 16418
- Timestamp:
- 20 Mar 2021, 21:25:26 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r16411 r16418 19 19 import hashlib 20 20 import grok 21 from waeup.kofa.interfaces import CLEARED, RETURNING 21 22 from kofacustom.nigeria.interswitch.browser import ( 22 23 InterswitchPaymentRequestWebservicePageApplicant, … … 137 138 provider_amt = 0.0 138 139 tech_fee = 0.0 140 microsoft_fee = 0.0 139 141 if self.context.p_category.startswith('schoolfee'): 140 142 self.pay_item_id = '102' … … 142 144 provider_amt = 2800.0 143 145 tech_fee = 1200.0 146 if student.state == RETURNING: 147 microsoft_fee = 7000.0 144 148 if student.faccode == 'SPAT': 145 149 xmldict['institution_acct'] = '1015220292' … … 249 253 </item_details> 250 254 </payment_item_detail>""" % xmldict 251 el se:255 elif microsoft_fee == 0: 252 256 xmltext = """<payment_item_detail> 253 257 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> … … 255 259 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 256 260 <item_detail item_id="3" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="10" acct_num="0032256360" /> 261 </item_details> 262 </payment_item_detail>""" % xmldict 263 else: 264 xmltext = """<payment_item_detail> 265 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 266 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 267 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 268 <item_detail item_id="3" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="10" acct_num="0032256360" /> 269 <item_detail item_id="4" item_name="Microsoft Academy Fee" item_amt="%(microsoft_fee)d" bank_id="8" acct_num="2011810360" /> 257 270 </item_details> 258 271 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.