summaryrefslogtreecommitdiff
path: root/addons/payment_buckaroo/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-01-08 18:26:59 +0100
committerChristophe Simonis <chs@odoo.com>2016-01-08 18:26:59 +0100
commit499c2b8da50fd8ae36919805efb4af18524d7b88 (patch)
treec0ac11fd7d08e8f7cc6cbf15269ffbfb3a9b9991 /addons/payment_buckaroo/controllers
parent4bb147b0f5eac29a8f5e7ad9e7d310f97011d3bf (diff)
parent580389add8d231d56bf4a438ff571e4831c86f22 (diff)
[MERGE] forward port of branch saas-6 up to 580389a
Diffstat (limited to 'addons/payment_buckaroo/controllers')
-rw-r--r--addons/payment_buckaroo/controllers/main.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/payment_buckaroo/controllers/main.py b/addons/payment_buckaroo/controllers/main.py
index d6797493936..515d8cf2d1e 100644
--- a/addons/payment_buckaroo/controllers/main.py
+++ b/addons/payment_buckaroo/controllers/main.py
@@ -26,9 +26,6 @@ class BuckarooController(http.Controller):
""" Buckaroo."""
_logger.info('Buckaroo: entering form_feedback with post data %s', pprint.pformat(post)) # debug
request.registry['payment.transaction'].form_feedback(request.cr, SUPERUSER_ID, post, 'buckaroo', context=request.context)
- return_url = post.pop('return_url', '')
- if not return_url:
- data ='' + post.pop('ADD_RETURNDATA', '{}').replace("'", "\"")
- custom = json.loads(data)
- return_url = custom.pop('return_url', '/')
+ post = dict((key.upper(), value) for key, value in post.items())
+ return_url = post.get('ADD_RETURNDATA') or '/'
return werkzeug.utils.redirect(return_url)