aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/urls.py
blob: 38393e01892b04f71a28866c35e61ef9d437e0ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from django.urls import path

from . import views
from .views import CancelView
from .views import SuccessView
from .views import privacy_policy  # Import the new view

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-basket/<int:resource_id>", views.add_to_cart, name="add_to_basket"),
    path("landing/", views.ProductLandingPageView.as_view(), name="landing"),
    path("delete-cart-item/<int:pk>", views. DeleteCartItem.as_view(), name="delete_cart_item"),
    path("webhooks/stripe/", views.stripe_webhook, name="stripe-webhook"),
    # path("email_signup/", views.email_signup, name="email_signup"),
    path("email-sign-up-verification/", views.email_signup_verification, name="email_signup_verification"),
    path("verify-email/<str:token>/", views.verify_email, name="verify_email"),
    path("success_email_signup/", views.SuccessEmailSignupView.as_view(), name="success_email_signup"),
    path('privacy-policy/', privacy_policy, name='privacy_policy'),  # Add this line
]