From 67cbe33e3a3105c00149f7828c73b6a11d879470 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 17 May 2016 07:10:18 +0200 Subject: [PATCH] fix trailing commas, rename to epay.py --- shop/{utils.py => epay.py} | 4 ++-- shop/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename shop/{utils.py => epay.py} (81%) diff --git a/shop/utils.py b/shop/epay.py similarity index 81% rename from shop/utils.py rename to shop/epay.py index 7cca1b57..308c07f2 100644 --- a/shop/utils.py +++ b/shop/epay.py @@ -10,8 +10,8 @@ def calculate_epay_hash(order, request): description=order.description, amount=order.amount*100, order_id=order.pk, - accept_url = order.get_epay_accept_url(request) - cancel_url = order.get_epay_cancel_url(request) + accept_url = order.get_epay_accept_url(request), + cancel_url = order.get_epay_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 81962275..506f0f90 100644 --- a/shop/views.py +++ b/shop/views.py @@ -23,7 +23,7 @@ from shop.models import ( EpayCallback, ) from .forms import AddToOrderForm -from .utils import calculate_epay_hash +from .epay import calculate_epay_hash class EnsureUserOwnsOrderMixin(SingleObjectMixin):