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

Log payment_category.

File:
1 edited

Legend:

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

    r9434 r9440  
    9999    payment.r_card_num = wlist[3]
    100100    payment.r_pay_reference = wlist[5]
     101    payment.r_company = u'interswitch'
    101102    if payment.r_code != '00':
    102103        msg = _('Unsuccessful callback: ${a}', mapping = {'a': sr})
    103         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)
    104106        payment.p_state = 'failed'
    105107        return False, msg, log
    106108    if payment.r_amount_approved != payment.amount_auth:
    107109        msg = _('Callback amount does not match.')
    108         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)
    109112        payment.p_state = 'failed'
    110113        return False, msg, log
    111114    if wlist[4] != payment.p_id:
    112115        msg = _('Callback transaction id does not match.')
    113         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)
    114118        payment.p_state = 'failed'
    115119        return False, msg, log
Note: See TracChangeset for help on using the changeset viewer.