Changeset 9442 for main/waeup.kwarapoly
- Timestamp:
- 27 Oct 2012, 06:37:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r9436 r9442 102 102 payment.r_card_num = wlist[3] 103 103 payment.r_pay_reference = wlist[5] 104 payment.r_company = u'interswitch' 104 105 if payment.r_code != '00': 105 106 msg = _('Unsuccessful callback: ${a}', mapping = {'a': sr}) 106 log = 'unsuccessful callback for payment %s: %s' % (payment.p_id, sr) 107 log = 'unsuccessful callback for %s payment %s: %s' % ( 108 payment.p_category, payment.p_id, sr) 107 109 payment.p_state = 'failed' 108 110 return False, msg, log 109 111 if payment.r_amount_approved != payment.amount_auth: 110 112 msg = _('Callback amount does not match.') 111 log = 'wrong callback for payment %s: %s' % (payment.p_id, sr) 113 log = 'wrong callback for %s payment %s: %s' % ( 114 payment.p_category, payment.p_id, sr) 112 115 payment.p_state = 'failed' 113 116 return False, msg, log 114 117 if wlist[4] != payment.p_id: 115 118 msg = _('Callback transaction id does not match.') 116 log = 'wrong callback for payment %s: %s' % (payment.p_id, sr) 119 log = 'wrong callback for %s payment %s: %s' % ( 120 payment.p_category, payment.p_id, sr) 117 121 payment.p_state = 'failed' 118 122 return False, msg, log
Note: See TracChangeset for help on using the changeset viewer.