[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 only fix the s2s code in saas-6, the form payment code has been fixed in 8.0 and will be forward-ported (commit e7085a8bd7)
This commit is contained in:
Damien Bouvy
2015-07-16 11:11:26 +02:00
parent e765b8556a
commit 1240e2ae88
+3 -3
View File
@@ -407,9 +407,9 @@ class PaymentTxOgone(osv.Model):
return self.ogone_s2s_validate(tx, tree, tries - 1)
else:
error = 'Ogone: feedback error: %(error_str)s\n\n%(error_code)s: %(error_msg)s' % {
'error_str': tree.get('NCERROR'),
'error_code': tree.get('NCERRORPLUS'),
'error_msg': ogone.OGONE_ERROR_MAP.get(tree.get('NCERRORPLUS')),
'error_str': tree.get('NCERRORPLUS'),
'error_code': tree.get('NCERROR'),
'error_msg': ogone.OGONE_ERROR_MAP.get(tree.get('NCERROR')),
}
_logger.info(error)
tx.write({