Index: /main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py
===================================================================
--- /main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py	(revision 16849)
+++ /main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py	(revision 16850)
@@ -75,11 +75,4 @@
             self.redirect(self.url(self.context, '@@index'))
             return
-        # Already now it becomes an Interswitch payment. We set the net amount
-        # and add the gateway amount.
-        if not self.context.r_company:
-            self.context.net_amt = self.context.amount_auth
-            self.context.amount_auth += self.gateway_amt
-            self.context.gateway_amt = self.gateway_amt
-            self.context.r_company = u'interswitch'
         student = self.student
         xmldict = self.xmldict
@@ -93,11 +86,21 @@
         xmldict['institution_bank_id'] = '117'
         provider_amt = 0.0
-        tech_fee = 1200
+        tech_fee = 0.0
         if self.context.p_category == 'clearance':
             provider_amt = 500.0
         if self.context.p_category == 'schoolfee':
             provider_amt = 2800.0
-            tech_fee = 1200
+            tech_fee = 1200.0
         self.pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch
+        # Already now it becomes an Interswitch payment. We set the net amount
+        # and add gateway amount and other surcharges.
+        if not self.context.r_company:
+            self.context.r_company = u'interswitch'
+            self.context.net_amt = self.context.amount_auth
+            self.context.gateway_amt = self.gateway_amt
+            self.context.amount_auth += self.gateway_amt
+            self.context.provider_amt = provider_amt
+            self.context.amount_auth += provider_amt
+            self.context.amount_auth += tech_fee
         xmldict['provider_amt'] = 100 * provider_amt
         xmldict['tech_fee'] = 100 * tech_fee
@@ -105,8 +108,4 @@
         xmldict['institution_name'] = INSTITUTION_NAME
         xmldict['institution_amt'] = 100 * self.context.net_amt
-        if not self.context.provider_amt:
-            self.context.provider_amt = provider_amt
-            self.context.amount_auth += provider_amt
-        self.context.amount_auth += tech_fee
         if provider_amt == 0:
             xmltext = """<payment_item_detail>
