Ignore:
Timestamp:
27 Oct 2012, 06:37:54 (12 years ago)
Author:
Henrik Bettermann
Message:

Log always payment_category.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r9436 r9442  
    102102    payment.r_card_num = wlist[3]
    103103    payment.r_pay_reference = wlist[5]
     104    payment.r_company = u'interswitch'
    104105    if payment.r_code != '00':
    105106        msg = _('Unsuccessful callback: ${a}', mapping = {'a': sr})
    106         log = 'unsuccessful callback for payment %s: %s' % (payment.p_id, sr)
     107        log = 'unsuccessful callback for %s payment %s: %s' % (
     108            payment.p_category, payment.p_id, sr)
    107109        payment.p_state = 'failed'
    108110        return False, msg, log
    109111    if payment.r_amount_approved != payment.amount_auth:
    110112        msg = _('Callback amount does not match.')
    111         log = 'wrong callback for payment %s: %s' % (payment.p_id, sr)
     113        log = 'wrong callback for %s payment %s: %s' % (
     114            payment.p_category, payment.p_id, sr)
    112115        payment.p_state = 'failed'
    113116        return False, msg, log
    114117    if wlist[4] != payment.p_id:
    115118        msg = _('Callback transaction id does not match.')
    116         log = 'wrong callback for payment %s: %s' % (payment.p_id, sr)
     119        log = 'wrong callback for %s payment %s: %s' % (
     120            payment.p_category, payment.p_id, sr)
    117121        payment.p_state = 'failed'
    118122        return False, msg, log
Note: See TracChangeset for help on using the changeset viewer.