fix trailing commas, rename to epay.py
This commit is contained in:
parent
e0c3be498b
commit
67cbe33e3a
|
@ -10,8 +10,8 @@ def calculate_epay_hash(order, request):
|
||||||
description=order.description,
|
description=order.description,
|
||||||
amount=order.amount*100,
|
amount=order.amount*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_epay_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()
|
|
@ -23,7 +23,7 @@ from shop.models import (
|
||||||
EpayCallback,
|
EpayCallback,
|
||||||
)
|
)
|
||||||
from .forms import AddToOrderForm
|
from .forms import AddToOrderForm
|
||||||
from .utils import calculate_epay_hash
|
from .epay import calculate_epay_hash
|
||||||
|
|
||||||
|
|
||||||
class EnsureUserOwnsOrderMixin(SingleObjectMixin):
|
class EnsureUserOwnsOrderMixin(SingleObjectMixin):
|
||||||
|
|
Loading…
Reference in a new issue