[FIX] payment_ogone: ogone error responses is now handled correctly
There was a mixup in the ogone response parameters that prevented error message to be stored successfully; this commit fixes that.
This commit is contained in:
parent
4cd8b15fd5
commit
e7085a8bd7
|
@ -260,9 +260,9 @@ class PaymentTxOgone(osv.Model):
|
|||
})
|
||||
else:
|
||||
error = 'Ogone: feedback error: %(error_str)s\n\n%(error_code)s: %(error_msg)s' % {
|
||||
'error_str': data.get('NCERROR'),
|
||||
'error_code': data.get('NCERRORPLUS'),
|
||||
'error_msg': ogone.OGONE_ERROR_MAP.get(data.get('NCERRORPLUS')),
|
||||
'error_str': data.get('NCERRORPLUS'),
|
||||
'error_code': data.get('NCERROR'),
|
||||
'error_msg': ogone.OGONE_ERROR_MAP.get(data.get('NCERROR')),
|
||||
}
|
||||
_logger.info(error)
|
||||
tx.write({
|
||||
|
|
Loading…
Reference in New Issue