diff --git a/shop/urls.py b/shop/urls.py index 0b5d9048..d3221b22 100644 --- a/shop/urls.py +++ b/shop/urls.py @@ -2,11 +2,12 @@ from django.conf.urls import url from views import * urlpatterns = [ - url(r'orders/(?P[0-9]+)/pay/creditcard/$', EpayFormView.as_view(), name='epay_form'), - url(r'epay_callback/', EpayCallbackView.as_view(), name='epay_callback'), url(r'^$', ShopIndexView.as_view(), name='index'), url(r'products/(?P[-_\w+]+)/$', ProductDetailView.as_view(), name='product_detail'), url(r'orders/$', OrderListView.as_view(), name='order_list'), url(r'orders/(?P[0-9]+)/$', OrderDetailView.as_view(), name='order_detail'), - # url(r'orders/(?P[0-9]+)/checkout/$', CheckoutView.as_view(), name='checkout'), + url(r'orders/(?P[0-9]+)/pay/creditcard/$', EpayFormView.as_view(), name='epay_form'), + url(r'orders/(?P[0-9]+)/pay/blockchain/$', CoinifyRedirectView.as_view(), name='coinify_pay'), + url(r'orders/(?P[0-9]+)/pay/banktransfer/$', BankTransferView.as_view(), name='bank_transfer'), + url(r'epay_callback/', EpayCallbackView.as_view(), name='epay_callback'), ] diff --git a/shop/views.py b/shop/views.py index 334990b4..f0f214b6 100644 --- a/shop/views.py +++ b/shop/views.py @@ -10,7 +10,6 @@ from django.views.generic import ( ListView, DetailView, FormView, - View, ) from camps.models import Camp from shop.models import ( @@ -304,3 +303,8 @@ class EpayCallbackView(View): return HttpResponse(status=400) return HttpResponse('OK') + + +class BankTransferView(TemplateView): + template_name = 'epay_form.html' +