- Timestamp:
- 2 Aug 2017, 08:28:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py
r14741 r14743 61 61 return parsed_json 62 62 63 64 63 def get_payment_status_via_rrr(merchantId, api_key, RRR, host, https): 65 64 RRR = RRR.rstrip() … … 84 83 return {'error': 'No JSON response'} 85 84 return parsed_json 86 87 85 88 86 def query_remita(payment, merchantId, api_key, RRR, host, https, verify): … … 111 109 payment.r_pay_reference = jr['RRR'] 112 110 payment.r_company = u'remita' 113 if payment.r_code != '00':111 if payment.r_code not in ('00', '01'): 114 112 msg = _('Unsuccessful callback: ${a}', mapping = {'a': payment.r_desc}) 115 113 log = 'unsuccessful callback for %s payment %s: %s' % ( … … 141 139 return True, msg, log 142 140 143 144 141 def write_payments_log(id, payment): 145 142 payment.logger.info(
Note: See TracChangeset for help on using the changeset viewer.