Ignore:
Timestamp:
2 Aug 2017, 08:28:31 (7 years ago)
Author:
Henrik Bettermann
Message:

Add first Remita views.

File:
1 edited

Legend:

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

    r14741 r14743  
    6161    return parsed_json
    6262
    63 
    6463def get_payment_status_via_rrr(merchantId, api_key, RRR, host, https):
    6564    RRR = RRR.rstrip()
     
    8483        return {'error': 'No JSON response'}
    8584    return parsed_json
    86 
    8785
    8886def query_remita(payment, merchantId, api_key, RRR, host, https, verify):
     
    111109    payment.r_pay_reference = jr['RRR']
    112110    payment.r_company = u'remita'
    113     if payment.r_code != '00':
     111    if payment.r_code not in ('00', '01'):
    114112        msg = _('Unsuccessful callback: ${a}', mapping = {'a': payment.r_desc})
    115113        log = 'unsuccessful callback for %s payment %s: %s' % (
     
    141139    return True, msg, log
    142140
    143 
    144141def write_payments_log(id, payment):
    145142    payment.logger.info(
Note: See TracChangeset for help on using the changeset viewer.