Changeset 9935
- Timestamp:
- 6 Feb 2013, 15:06:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r9926 r9935 135 135 success = f.read() 136 136 success = success.replace('\r\n','') 137 if 'C OL1' not in success:137 if 'CUSTOMER_ID' not in success: 138 138 msg = _('Invalid or unsuccessful callback: ${a}', 139 139 mapping = {'a': success}) … … 170 170 payment.p_state = 'failed' 171 171 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: 179 174 msg = _('Wrong payment id') 180 175 log = 'wrong callback for payment %s: %s' % (payment.p_id, success)
Note: See TracChangeset for help on using the changeset viewer.