From aed20d282180d08af1dab2e48d18204353c55fc3 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 16 May 2016 17:35:08 +0200 Subject: [PATCH] provide epay with a complete url to return the customer to after payment --- shop/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/views.py b/shop/views.py index 0cc2ff1c..a8bcfa12 100644 --- a/shop/views.py +++ b/shop/views.py @@ -233,7 +233,7 @@ class EpayFormView(TemplateView): def get_context_data(self, **kwargs): order = Order.objects.get(pk=kwargs.get('pk')) - accept_url = order.get_absolute_url() + accept_url = 'https://' + request.get_host() + order.get_absolute_url() amount = order.total order_id = str(order.pk) description = "BornHack 2016 order #%s" % order.pk