aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/payments/urls.py
blob: d294aab429dd25302d4db2241d31966b662dd8a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from django.urls import path

from . import views
from .views import CancelView, SuccessView

app_name = "payments"

urlpatterns = [
    path("checkout/", views.checkout, name="checkout"),
    path("cart/", views.cart_detail, name="cart_detail"),
    path("success/", SuccessView.as_view(), name="success"),
    path("cancel/", CancelView.as_view(), name="cancel"),
    path(
        "create-checkout-session/<int:pk>/",
        views.CreateCheckoutSessionView.as_view(),
        name="create-checkout-session",
    ),
    path("add-to-card/<int:pk>", views.add_to_cart, name="add_to_cart"),
    path("landing/", views.ProductLandingPageView.as_view(), name="landing"),
    # path("webhook/", views.webhook, name="webhook"),
]