Index: /main/kofacustom.nigeria/trunk/CHANGES.txt
===================================================================
--- /main/kofacustom.nigeria/trunk/CHANGES.txt	(revision 11913)
+++ /main/kofacustom.nigeria/trunk/CHANGES.txt	(revision 11914)
@@ -4,4 +4,6 @@
 1.2 (unreleased)
 ================
+
+- Be prepared for https webservice requests.
 
 - Add more exam subjects.
Index: /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py
===================================================================
--- /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py	(revision 11913)
+++ /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py	(revision 11914)
@@ -25,5 +25,5 @@
 from kofacustom.nigeria.interfaces import MessageFactory as _
 
-def SOAP_post(soap_action, xml, host, url):
+def SOAP_post(soap_action, xml, host, url, https):
     """Handles making the SOAP request.
 
@@ -31,5 +31,8 @@
     http://testwebpay.interswitchng.com/test_paydirect/services/TransactionQueryWs.asmx?op=getTransactionData
     """
-    h = httplib.HTTPConnection(host)
+    if https:
+        h = httplib.HTTPSConnection(host)
+    else:
+        h = httplib.HTTPConnection(host)
     headers={
         'Host':host,
@@ -42,5 +45,5 @@
     return response
 
-def get_SOAP_response(product_id, transref, host, url):
+def get_SOAP_response(product_id, transref, host, url, https):
     xml="""\
 <?xml version="1.0" encoding="utf-8"?>
@@ -53,5 +56,5 @@
   </soap:Body>
 </soap:Envelope>""" % (product_id, transref)
-    response=SOAP_post("http://tempuri.org/getTransactionData",xml, host, url)
+    response=SOAP_post("http://tempuri.org/getTransactionData",xml, host, url, https)
     if response.status!=200:
         return 'Connection error (%s, %s)' % (response.status, response.reason)
@@ -61,6 +64,6 @@
     return response
 
-def query_interswitch(payment, product_id, host, url):
-    sr = get_SOAP_response(product_id, payment.p_id, host, url)
+def query_interswitch(payment, product_id, host, url, https=False):
+    sr = get_SOAP_response(product_id, payment.p_id, host, url, https)
     if sr.startswith('Connection error'):
         msg = _('Connection error')
