Ignore:
Timestamp:
31 Oct 2016, 08:50:38 (8 years ago)
Author:
Henrik Bettermann
Message:

Be more tolerant.

File:
1 edited

Legend:

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

    r13710 r14245  
    117117        notify(grok.ObjectModifiedEvent(payment))
    118118        return False, msg, log
    119     if round(payment.r_amount_approved, 2) != round(payment.amount_auth, 2):
     119    if round(payment.r_amount_approved, 0) != round(payment.amount_auth, 0):
    120120        msg = _('Callback amount does not match.')
    121121        log = 'wrong callback for %s payment %s: %s' % (
     
    187187        notify(grok.ObjectModifiedEvent(payment))
    188188        return False, msg, log
    189     if round(payment.r_amount_approved, 2) != round(payment.amount_auth, 2):
     189    if round(payment.r_amount_approved, 0) != round(payment.amount_auth, 0):
    190190        msg = _('Callback amount does not match.')
    191191        log = 'wrong callback for %s payment %s: %s' % (
Note: See TracChangeset for help on using the changeset viewer.