32 lines
1.4 KiB
Python
32 lines
1.4 KiB
Python
from django.urls import path, include
|
|
from .views import *
|
|
|
|
app_name = 'shop'
|
|
|
|
urlpatterns = [
|
|
path('', ShopIndexView.as_view(), name='index'),
|
|
|
|
path('products/<slug:slug>/', ProductDetailView.as_view(), name='product_detail'),
|
|
|
|
path('orders/', OrderListView.as_view(), name='order_list'),
|
|
path('orders/<int:pk>/', include([
|
|
path('', OrderDetailView.as_view(), name='order_detail'),
|
|
path('invoice/', DownloadInvoiceView.as_view(), name='download_invoice'),
|
|
path('mark_as_paid/', OrderMarkAsPaidView.as_view(), name='mark_order_as_paid'),
|
|
|
|
path('pay/creditcard/', EpayFormView.as_view(), name='epay_form'),
|
|
path('pay/creditcard/callback/',EpayCallbackView.as_view(), name='epay_callback'),
|
|
path('pay/creditcard/thanks/', EpayThanksView.as_view(), name='epay_thanks'),
|
|
|
|
path('pay/blockchain/', CoinifyRedirectView.as_view(), name='coinify_pay'),
|
|
path('pay/blockchain/callback/', CoinifyCallbackView.as_view(), name='coinify_callback'),
|
|
path('pay/blockchain/thanks/', CoinifyThanksView.as_view(), name='coinify_thanks'),
|
|
|
|
path('pay/banktransfer/', BankTransferView.as_view(), name='bank_transfer'),
|
|
|
|
path('pay/cash/', CashView.as_view(), name='cash'),
|
|
])),
|
|
path('creditnotes/', CreditNoteListView.as_view(), name='creditnote_list'),
|
|
path('creditnotes/<int:pk>/pdf/', DownloadCreditNoteView.as_view(), name='download_creditnote'),
|
|
]
|