Changeset 16850 for main/kofacustom.unidel/trunk/src/kofacustom
- Timestamp:
- 1 Mar 2022, 09:35:12 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py
r16849 r16850 75 75 self.redirect(self.url(self.context, '@@index')) 76 76 return 77 # Already now it becomes an Interswitch payment. We set the net amount78 # and add the gateway amount.79 if not self.context.r_company:80 self.context.net_amt = self.context.amount_auth81 self.context.amount_auth += self.gateway_amt82 self.context.gateway_amt = self.gateway_amt83 self.context.r_company = u'interswitch'84 77 student = self.student 85 78 xmldict = self.xmldict … … 93 86 xmldict['institution_bank_id'] = '117' 94 87 provider_amt = 0.0 95 tech_fee = 120088 tech_fee = 0.0 96 89 if self.context.p_category == 'clearance': 97 90 provider_amt = 500.0 98 91 if self.context.p_category == 'schoolfee': 99 92 provider_amt = 2800.0 100 tech_fee = 1200 93 tech_fee = 1200.0 101 94 self.pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch 95 # Already now it becomes an Interswitch payment. We set the net amount 96 # and add gateway amount and other surcharges. 97 if not self.context.r_company: 98 self.context.r_company = u'interswitch' 99 self.context.net_amt = self.context.amount_auth 100 self.context.gateway_amt = self.gateway_amt 101 self.context.amount_auth += self.gateway_amt 102 self.context.provider_amt = provider_amt 103 self.context.amount_auth += provider_amt 104 self.context.amount_auth += tech_fee 102 105 xmldict['provider_amt'] = 100 * provider_amt 103 106 xmldict['tech_fee'] = 100 * tech_fee … … 105 108 xmldict['institution_name'] = INSTITUTION_NAME 106 109 xmldict['institution_amt'] = 100 * self.context.net_amt 107 if not self.context.provider_amt:108 self.context.provider_amt = provider_amt109 self.context.amount_auth += provider_amt110 self.context.amount_auth += tech_fee111 110 if provider_amt == 0: 112 111 xmltext = """<payment_item_detail>
Note: See TracChangeset for help on using the changeset viewer.