Changeset 17907 for main/kofacustom.nigeria/trunk
- Timestamp:
- 29 Aug 2024, 06:29:26 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/helpers.py
r17146 r17907 124 124 payment.r_pay_reference = jr['RRR'] 125 125 except KeyError: 126 msg = _('Error message from Remita: ${a}', mapping = {'a': payment.r_desc}) 127 log = 'unsuccessful response for %s payment %s: %s' % ( 128 payment.p_category, payment.p_id, str(jr)) 129 payment.p_state = 'failed' 130 notify(grok.ObjectModifiedEvent(payment)) 131 return False, msg, log 126 # Remita's programmers may not know that case sensitivity matters 127 # in programming languages. 128 try: 129 payment.r_pay_reference = jr['rrr'] 130 except KeyError: 131 msg = _('Error message from Remita: ${a}', mapping = {'a': payment.r_desc}) 132 log = 'unsuccessful response for %s payment %s: %s' % ( 133 payment.p_category, payment.p_id, str(jr)) 134 payment.p_state = 'failed' 135 notify(grok.ObjectModifiedEvent(payment)) 136 return False, msg, log 132 137 #payment.r_company = u'remita' 133 138 if payment.r_code not in ('00', '01'):
Note: See TracChangeset for help on using the changeset viewer.