summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-10-25 07:49:10 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-10-25 08:17:05 (GMT)
commit4f5b0d91b5da64f12d89e63fb1fd368658f8dbed (patch)
tree365540e012340c8c410a5fc103432d55e8de7836
parent09c890d0ff93ea647350f9e314618723a69af2dc (diff)
downloadcombo-hotfix/v2.39.zip
combo-hotfix/v2.39.tar.gz
combo-hotfix/v2.39.tar.bz2
lingo: make sure eopayment is given a string (#37214)hotfix/v2.39
-rw-r--r--combo/apps/lingo/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py
index 80362a1..053d7c7 100644
--- a/combo/apps/lingo/views.py
+++ b/combo/apps/lingo/views.py
@@ -572,7 +572,7 @@ class CallbackView(PaymentView):
return self.handle_callback(request, request.environ['QUERY_STRING'], **kwargs)
def post(self, request, *args, **kwargs):
- return self.handle_callback(request, request.body, **kwargs)
+ return self.handle_callback(request, force_text(request.body), **kwargs)
@csrf_exempt
def dispatch(self, *args, **kwargs):
@@ -590,7 +590,7 @@ class ReturnView(PaymentView):
return self.handle_return(request, request.environ['QUERY_STRING'], **kwargs)
def post(self, request, *args, **kwargs):
- return self.handle_return(request, request.body, **kwargs)
+ return self.handle_return(request, force_text(request.body), **kwargs)
def handle_return(self, request, backend_response, **kwargs):
transaction = None