Ignore:
Timestamp:
18 Aug 2017, 07:43:15 (7 years ago)
Author:
Henrik Bettermann
Message:

Do not compare orderId with p_id if orderId is missing in the response.

File:
1 edited

Legend:

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

    r14788 r14806  
    129129        notify(grok.ObjectModifiedEvent(payment))
    130130        return False, msg, log
    131     if jr['orderId'] != payment.p_id:
     131    orderId = jr.get('orderId', None)
     132    if orderId and orderId != payment.p_id:
    132133        msg = _('Response order id does not match.')
    133134        log = 'wrong response for %s payment %s: %s' % (
Note: See TracChangeset for help on using the changeset viewer.