Index: /main/kofacustom.skeleton/trunk/CHANGES.txt
===================================================================
--- /main/kofacustom.skeleton/trunk/CHANGES.txt	(revision 12478)
+++ /main/kofacustom.skeleton/trunk/CHANGES.txt	(revision 12479)
@@ -2,6 +2,8 @@
 *******
 
-1.2dev (unreleased)
-===================
+1.2.dev0 (unreleased)
+=====================
+
+* Forward hash value to Interswitch payment gateway.
 
 * Create sample application_slip.pdf during tests.
Index: /main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/browser.py
===================================================================
--- /main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/browser.py	(revision 12478)
+++ /main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/browser.py	(revision 12479)
@@ -17,4 +17,5 @@
 ##
 import httplib
+import hashlib
 import grok
 from kofacustom.nigeria.interswitch.browser import (
@@ -44,5 +45,6 @@
 URL = '/paydirect/services/TransactionQueryWs.asmx'
 #URL = '/test_paydirect/services/TransactionQueryWs.asmx'
-httplib.HTTPConnection.debuglevel = 0
+httplib.HTTPSConnection.debuglevel = 0
+HTTPS = True
 
 class CustomInterswitchPageStudent(InterswitchPageStudent):
@@ -55,4 +57,5 @@
     currency = CURRENCY
     product_id = PRODUCT_ID
+    mac = ''
 
     def update(self):
@@ -97,4 +100,13 @@
         self.context.provider_amt = provider_amt
         self.context.gateway_amt = GATEWAY_AMT
+
+        hashargs = (
+            self.context.p_id +
+            PRODUCT_ID +
+            self.pay_item_id +
+            str(int(self.amount_auth)) +
+            self.site_redirect_url +
+            self.mac)
+        self.hashvalue = hashlib.sha512(hashargs).hexdigest()
         return
 
@@ -109,4 +121,5 @@
     pay_item_id = '0000'
     product_id = PRODUCT_ID
+    mac = ''
 
     def update(self):
@@ -134,4 +147,13 @@
         self.context.provider_amt = provider_amt
         self.context.gateway_amt = GATEWAY_AMT
+
+        hashargs = (
+            self.context.p_id +
+            PRODUCT_ID +
+            self.pay_item_id +
+            str(int(self.amount_auth)) +
+            self.site_redirect_url +
+            self.mac)
+        self.hashvalue = hashlib.sha512(hashargs).hexdigest()
         return
 
@@ -144,4 +166,5 @@
     gateway_host = HOST
     gateway_url = URL
+    https = HTTPS
 
 class CustomInterswitchPaymentRequestWebservicePageApplicant(
@@ -153,2 +176,3 @@
     gateway_host = HOST
     gateway_url = URL
+    https = HTTPS
Index: /main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/tests.py
===================================================================
--- /main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/tests.py	(revision 12478)
+++ /main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/tests.py	(revision 12479)
@@ -72,6 +72,4 @@
         self.payment_url = self.browser.url
         self.browser.getLink("CollegePAY", index=0).click()
-        # The total amount to be processed by Interswitch
-        # has been reduced by the Interswitch fee of 150 Nairas
         self.assertMatches('...<input type="hidden" name="pay_item_id" value="0000" />...',
                            self.browser.contents)
