use a paymenttype independent order.get_cancel_url everywhere

This commit is contained in:
Thomas Steen Rasmussen 2016-05-29 15:55:48 +02:00
parent 283f4013a9
commit a53811b4c1
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ def calculate_epay_hash(order, request):
amount=order.total*100, amount=order.total*100,
order_id=order.pk, order_id=order.pk,
accept_url = order.get_epay_accept_url(request), 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, md5_secret=settings.EPAY_MD5_SECRET,
) )
epay_hash = hashlib.md5(hashstring).hexdigest() epay_hash = hashlib.md5(hashstring).hexdigest()

View file

@ -332,7 +332,7 @@ class CoinifyRedirectView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUn
description='BornHack 2016 order id #%s' % order.id, description='BornHack 2016 order id #%s' % order.id,
callback_url=order.get_coinify_callback_url(request), callback_url=order.get_coinify_callback_url(request),
return_url=order.get_coinify_thanks_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 # Parse response