Changeset 8717 for main


Ignore:
Timestamp:
14 Jun 2012, 06:22:18 (13 years ago)
Author:
Henrik Bettermann
Message:

COL1 must contain the whole p_id.

File:
1 edited

Legend:

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

    r8710 r8717  
    130130        payment.p_state = 'failed'
    131131        return False, msg, log
    132     tcode = payment.p_id
    133     tcode = tcode[len(tcode)-8:len(tcode)]
     132    #tcode = payment.p_id
     133    #tcode = tcode[len(tcode)-8:len(tcode)]
    134134    col1 = success_dict.get('COL1')
    135     col1 = col1[len(col1)-8:len(col1)]
    136     if tcode != col1:
    137         msg = _('Wrong transaction code')
     135    #col1 = col1[len(col1)-8:len(col1)]
     136    #if tcode != col1:
     137    if payment.p_id != col1:
     138        #msg = _('Wrong transaction code')
     139        msg = _('Wrong payment id')
    138140        log = 'wrong callback for payment %s: %s' % (payment.p_id, success)
    139141        payment.p_state = 'failed'
Note: See TracChangeset for help on using the changeset viewer.