From a53811b4c1896eecae6e0ba1fc6e7ae0cb89fd39 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 29 May 2016 15:55:48 +0200 Subject: [PATCH] use a paymenttype independent order.get_cancel_url everywhere --- shop/epay.py | 2 +- shop/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/epay.py b/shop/epay.py index b5234d28..50be8a8f 100644 --- a/shop/epay.py +++ b/shop/epay.py @@ -11,7 +11,7 @@ def calculate_epay_hash(order, request): amount=order.total*100, order_id=order.pk, accept_url = order.get_epay_accept_url(request), - cancel_url = order.get_epay_cancel_url(request), + cancel_url = order.get_cancel_url(request), md5_secret=settings.EPAY_MD5_SECRET, ) epay_hash = hashlib.md5(hashstring).hexdigest() diff --git a/shop/views.py b/shop/views.py index 4f706684..b5bf4b8b 100644 --- a/shop/views.py +++ b/shop/views.py @@ -332,7 +332,7 @@ class CoinifyRedirectView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUn description='BornHack 2016 order id #%s' % order.id, callback_url=order.get_coinify_callback_url(request), return_url=order.get_coinify_thanks_url(request), - cancel_url=order.get_coinify_cancel_url(request), + cancel_url=order.get_cancel_url(request), ) # Parse response