Changeset 9440
- Timestamp:
- 27 Oct 2012, 06:37:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py
r9434 r9440 99 99 payment.r_card_num = wlist[3] 100 100 payment.r_pay_reference = wlist[5] 101 payment.r_company = u'interswitch' 101 102 if payment.r_code != '00': 102 103 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) 104 106 payment.p_state = 'failed' 105 107 return False, msg, log 106 108 if payment.r_amount_approved != payment.amount_auth: 107 109 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) 109 112 payment.p_state = 'failed' 110 113 return False, msg, log 111 114 if wlist[4] != payment.p_id: 112 115 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) 114 118 payment.p_state = 'failed' 115 119 return False, msg, log
Note: See TracChangeset for help on using the changeset viewer.