provide epay with a complete url to return the customer to after payment

This commit is contained in:
Thomas Steen Rasmussen 2016-05-16 17:35:08 +02:00
parent d22ef963d4
commit aed20d2821

View file

@ -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