Changeset 9935


Ignore:
Timestamp:
6 Feb 2013, 15:06:11 (12 years ago)
Author:
Henrik Bettermann
Message:

Replace COL1 by CUSTOMER_ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r9926 r9935  
    135135        success = f.read()
    136136        success = success.replace('\r\n','')
    137         if 'COL1' not in success:
     137        if 'CUSTOMER_ID' not in success:
    138138            msg = _('Invalid or unsuccessful callback: ${a}',
    139139                mapping = {'a': success})
     
    170170        payment.p_state = 'failed'
    171171        return False, msg, log
    172     #tcode = payment.p_id
    173     #tcode = tcode[len(tcode)-8:len(tcode)]
    174     col1 = success_dict.get('COL1')
    175     #col1 = col1[len(col1)-8:len(col1)]
    176     #if tcode != col1:
    177     if payment.p_id != col1:
    178         #msg = _('Wrong transaction code')
     172    customer_id = success_dict.get('CUSTOMER_ID')
     173    if payment.p_id != customer_id:
    179174        msg = _('Wrong payment id')
    180175        log = 'wrong callback for payment %s: %s' % (payment.p_id, success)
Note: See TracChangeset for help on using the changeset viewer.