aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/urls.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
commiteeaddb27560d723ca7d61359744ceb2709fccd2d (patch)
tree04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /alphabetlearning/payments/urls.py
parent7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff)
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to 'alphabetlearning/payments/urls.py')
-rw-r--r--alphabetlearning/payments/urls.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/alphabetlearning/payments/urls.py b/alphabetlearning/payments/urls.py
new file mode 100644
index 0000000..52e2451
--- /dev/null
+++ b/alphabetlearning/payments/urls.py
@@ -0,0 +1,22 @@
+from django.urls import path
+
+from . import views
+from .views import CancelView
+from .views import 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:resource_id>", views.add_to_cart, name="add_to_cart"),
+ path("landing/", views.ProductLandingPageView.as_view(), name="landing"),
+ # path("webhook/", views.webhook, name="webhook"),
+]