Ignore:
Timestamp:
2 Aug 2017, 11:37:53 (7 years ago)
Author:
Henrik Bettermann
Message:

Explain which message we see.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/browser.py

    r14745 r14750  
    9191        # if a payment was not successful.
    9292        resp = self.request.form
    93         if resp and resp.get('statuscode') not in ('025', '00', '01'):
    94             self.flash('Message from Remita: %s.'
    95                 % resp.get('status'), type='danger')
     93        if resp and resp.get('statuscode') not in (None, '025', '00', '01'):
     94            self.flash('Transaction status message from Remita: %s'
     95                % resp.get('status'), type='warning')
    9696
    9797        success, msg, log = query_remita(
     
    188188            return resp.get('error')
    189189        if resp.get('statuscode') not in ('021', '025', '055'):
    190             return 'Message from Remita: ' + resp.get('status')
     190            return 'RRR generation message from Remita: ' + resp.get('status')
    191191        self.rrr = self.context.r_pay_reference = resp['RRR'].rstrip()
    192192        hashargs =      self.merchantId + self.rrr + self.api_key
Note: See TracChangeset for help on using the changeset viewer.