Ignore:
Timestamp:
3 Jun 2013, 10:40:44 (11 years ago)
Author:
Henrik Bettermann
Message:

Temporary solution to circumvent Python floating point arithmetic.

File:
1 edited

Legend:

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

    r9774 r10272  
    8585        notify(grok.ObjectModifiedEvent(payment))
    8686        return False, msg, log
    87     if payment.r_amount_approved != payment.amount_auth:
     87    if int(100*payment.r_amount_approved) != int(100*payment.amount_auth):
    8888        msg = _('Callback amount does not match.')
    8989        log = 'wrong callback for %s payment %s: %s' % (
Note: See TracChangeset for help on using the changeset viewer.