- Timestamp:
- 11 Jan 2016, 08:57:40 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py
r13584 r13585 95 95 def query_interswitch_SOAP(payment, product_id, host, url, https, verify): 96 96 sr = get_SOAP_response(product_id, payment.p_id, host, url, https) 97 log = 'invalid callback for payment %s: %s' % (payment.p_id, str(jr)) 97 98 if sr.startswith('Connection error'): 98 99 msg = _('Connection error') … … 102 103 if len(wlist) != 7: 103 104 msg = _('Invalid callback: ${a}', mapping = {'a': sr}) 105 log = 'invalid callback for payment %s: %s' % (payment.p_id, sr) 106 return False, msg, log 107 if verify and jr['ResponseCode'] == '20050': 108 msg = _('Integration method has changed.') 104 109 log = 'invalid callback for payment %s: %s' % (payment.p_id, sr) 105 110 return False, msg, log … … 170 175 log = 'invalid callback for payment %s: %s' % (payment.p_id, str(jr)) 171 176 return False, msg, log 177 if verify and jr['ResponseCode'] == '20050': 178 msg = _('Integration method has changed.') 179 log = 'invalid callback for payment %s: %s' % (payment.p_id, str(jr)) 180 return False, msg, log 172 181 payment.r_code = jr['ResponseCode'] 173 182 payment.r_desc = jr['ResponseDescription']
Note: See TracChangeset for help on using the changeset viewer.