from django.urls import path from .preview import CheckoutPreviewView from .views import ( CheckoutView, GatewayCallbackView, InstructorSalesView, MyOrderDetailView, MyOrdersView, ) urlpatterns = [ path("courses//checkout/", CheckoutView.as_view(), name="checkout"), path( "courses//checkout/preview/", CheckoutPreviewView.as_view(), name="checkout-preview", ), path( "payments/callback//", GatewayCallbackView.as_view(), name="payment-callback", ), path("me/orders/", MyOrdersView.as_view(), name="my-orders"), path("me/orders//", MyOrderDetailView.as_view(), name="my-order-detail"), path("instructor/orders/", InstructorSalesView.as_view(), name="instructor-orders"), ]