[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:
Damien Bouvy 2015-07-16 09:20:07 +02:00
parent 4cd8b15fd5
commit e7085a8bd7
1 changed files with 3 additions and 3 deletions

View File

@ -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({