Index: main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
===================================================================
--- main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py	(revision 14819)
+++ main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py	(revision 14859)
@@ -48,4 +48,41 @@
 httplib.HTTPSConnection.debuglevel = 0
 HTTPS = True
+
+SPECIAL_PAYMENT_PARAMS = {
+    'certificate': ('111', 500.0, '1012808851', '117'),
+    'state_result': ('112', 500.0, '1012808851', '117'),
+    'transcript_local': ('113', 500.0, '1012808851', '117'),
+    'transcript_foreign': ('114', 500.0, '1012808851', '117'),
+    'ver_result': ('115', 500.0, '1012808851', '117'),
+    'change_course': ('116', 500.0, '1012808851', '117'),
+    'change_inst': ('117', 500.0, '1012808851', '117'),
+    'jamb_reject': ('118', 500.0, '1012808851', '117'),
+    'cert_of_cert': ('119', 500.0, '1012808851', '117'),
+    'ref_let': ('120', 500.0, '1012808851', '117'),
+    'proc_cert': ('121', 500.0, '1012808851', '117'),
+    'loss_idcard': ('122', 9.0, '1012808851', '117'),
+    'loss_examcard': ('123', 4.5, '1012808851', '117'),
+    'loss_result': ('124', 500.0, '1012808851', '117'),
+    'loss_receipt': ('125', 500.0, '1012808851', '117'),
+    'loss_clearance': ('126', 500.0, '1012808851', '117'),
+    'conv_brochure': ('127', 500.0, '1012808851', '117'),
+    'hnd_certificate': ('128', 500.0, '1012808851', '117'),
+    'hnd_state_result': ('129', 500.0, '1012808851', '117'),
+    'hnd_transcript_local': ('130', 500.0, '1012808851', '117'),
+    'hnd_transcript_foreign': ('131', 500.0, '1012808851', '117'),
+    'staff_loss_idcard': ('132', 9.0, '1012808851', '117'),
+    'hnd_conv_brochure': ('133', 500.0, '1012808851', '117'),
+    'pgd_state_result': ('134', 500.0, '1012808851', '117'),
+    'pgd_conv_brochure': ('135', 500.0, '1012808851', '117'),
+    'pgd_certificate': ('136', 500.0, '1012808851', '117'),
+    'log_book': ('137', 4.5, '1012808851', '117'),
+    'pgd_transcript_foreign': ('138', 500.0, '1012808851', '117'),
+    'pgd_transcript_local': ('139', 500.0, '1012808851', '117'),
+    'jamb_regularization': ('140', 500.0, '1012808851', '117'),
+    'utme_registration': ('142', 9.0, '1012808851', '117'),
+    'utme_cbt': ('143', 9.0, '1012808851', '117'),
+    'nysc_id_card': ('144', 9.0, '1012808851', '117'),
+    'ijmb_result': ('147', 500.0, '1012808851', '117'),
+    }
 
 class CustomInterswitchPageStudent(InterswitchPageStudent):
@@ -132,4 +169,5 @@
         xmldict = {}
         provider_amt = 500.0
+        gateway_amt = GATEWAY_AMT
         xmldict['institution_acct'] = '00000000'
         xmldict['institution_bank_id'] = '00'
@@ -141,4 +179,13 @@
             xmldict['institution_acct'] = '1015220292'
             xmldict['institution_bank_id'] = '117'
+        elif self.applicant.applicant_id.startswith('special'):
+            if self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
+                self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0]
+                provider_amt = SPECIAL_PAYMENT_PARAMS[self.context.p_category][1]
+                xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][2]
+                xmldict['institution_bank_id'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3]
+        if self.pay_item_id in ('122', '123', '132', '137', '141',
+                                '142', '143', '144', '146', '147',):
+                gateway_amt = round(0.015 * self.context.amount_auth, 2)
         xmldict['detail_ref'] = self.context.p_id
         xmldict['provider_amt'] = 100 * provider_amt
@@ -146,5 +193,5 @@
         xmldict['provider_bank_id'] = PROVIDER_BANK_ID
         xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
-        xmldict['institution_amt'] = 100 * (self.context.amount_auth - provider_amt - GATEWAY_AMT)
+        xmldict['institution_amt'] = 100 * (self.context.amount_auth - provider_amt - gateway_amt)
         xmldict['institution_item_name'] = self.context.category
         xmldict['institution_name'] = INSTITUTION_NAME
