aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/payments/urls.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-09 17:21:11 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-09 17:21:11 +0100
commit677c935fdc3b083a9940a1b2f280cb1ccdbc03bd (patch)
treed9ecde9f2b9dc7db923438120b9031dc2b9b6301 /pyblackbird_cc/payments/urls.py
parent082d6a7ee8bece150c04840474b18aa791f6300d (diff)
wip: working on tests for adding resource to a cart
Diffstat (limited to 'pyblackbird_cc/payments/urls.py')
-rw-r--r--pyblackbird_cc/payments/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyblackbird_cc/payments/urls.py b/pyblackbird_cc/payments/urls.py
index 7f10a9b..d294aab 100644
--- a/pyblackbird_cc/payments/urls.py
+++ b/pyblackbird_cc/payments/urls.py
@@ -1,8 +1,7 @@
from django.urls import path
from . import views
-from .views import CancelView
-from .views import SuccessView
+from .views import CancelView, SuccessView
app_name = "payments"
@@ -16,6 +15,7 @@ urlpatterns = [
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"),
]