Index: /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py
===================================================================
--- /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py	(revision 16113)
+++ /main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py	(revision 16114)
@@ -154,4 +154,7 @@
 
     # A typical JSON response
+
+    # old:
+
     #  {u'SplitAccounts': [],
     #   u'MerchantReference':u'p4210665523377',
@@ -166,5 +169,19 @@
     #   u'LeadBankName': None}
 
-    if len(jr) < 11:
+    # new:
+
+    # 'PaymentReference' is maybe missing
+
+    #  {u'SplitAccounts': [],
+    #  u'MerchantReference':u'p5918633006916',
+    #  u'TransactionDate':u'2020-06-11T09:17:37',
+    #  u'ResponseDescription':u'Customer Cancellation',
+    #  u'Amount': 89525000,
+    #  u'CardNumber': u'',
+    #  u'ResponseCode': u'Z6',
+    #  u'BankCode': u''}
+
+
+    if len(jr) < 8:
         msg = _('Invalid callback: ${a}', mapping = {'a': str(jr)})
         log = 'invalid callback for payment %s: %s' % (payment.p_id, str(jr))
@@ -178,5 +195,5 @@
     payment.r_amount_approved = jr['Amount'] / 100.0
     payment.r_card_num = jr['CardNumber']
-    payment.r_pay_reference = jr['PaymentReference']
+    payment.r_pay_reference = jr.get('PaymentReference', u'')
     #payment.r_company = u'interswitch'
     if payment.r_code != '00':
