Changeset 9441 for main/waeup.futminna


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

Log always payment_category.

File:
1 edited

Legend:

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

    r9432 r9441  
    102102    if payment.r_code != '00':
    103103        msg = _('Unsuccessful callback: ${a}', mapping = {'a': sr})
    104         log = 'unsuccessful callback for payment %s: %s' % (payment.p_id, sr)
     104        log = 'unsuccessful callback for %s payment %s: %s' % (
     105            payment.p_category, payment.p_id, sr)
    105106        payment.p_state = 'failed'
    106107        return False, msg, log
    107108    if payment.r_amount_approved != payment.amount_auth:
    108109        msg = _('Callback amount does not match.')
    109         log = 'wrong callback for payment %s: %s' % (payment.p_id, sr)
     110        log = 'wrong callback for %s payment %s: %s' % (
     111            payment.p_category, payment.p_id, sr)
    110112        payment.p_state = 'failed'
    111113        return False, msg, log
    112114    if wlist[4] != payment.p_id:
    113115        msg = _('Callback transaction id does not match.')
    114         log = 'wrong callback for payment %s: %s' % (payment.p_id, sr)
     116        log = 'wrong callback for %s payment %s: %s' % (
     117            payment.p_category, payment.p_id, sr)
    115118        payment.p_state = 'failed'
    116119        return False, msg, log
Note: See TracChangeset for help on using the changeset viewer.