diff options
| author | Damien Bouvy <dbo@odoo.com> | 2015-07-16 09:17:20 +0200 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2015-07-16 11:11:26 +0200 |
| commit | 1240e2ae880476afa0dff911bf0513e62713ed46 (patch) | |
| tree | b1d419805740c62e7dbeea6b80ca9819deb907a3 | |
| parent | e765b8556a162a3e611fa51b73bfe15f215d6626 (diff) | |
[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 e7085a8bd794446dfda3c8b422601495dc6a8210)
| -rw-r--r-- | addons/payment_ogone/models/ogone.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/payment_ogone/models/ogone.py b/addons/payment_ogone/models/ogone.py index 4ffdd7518de..47bb235a490 100644 --- a/addons/payment_ogone/models/ogone.py +++ b/addons/payment_ogone/models/ogone.py @@ -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({ |
