aboutsummaryrefslogblamecommitdiffstats
path: root/alphabetlearning/payments/urls.py
blob: d5b0dd520575488b17f72d6afe85a1be9237e001 (plain) (tree)
1
2
3
4
5
6
7
8
9


                            

                              



                     

                                                         

                                                            




                                                  
                                                                                     
                                                                             
                                                                          
 
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-basket/<int:resource_id>", views.add_to_cart, name="add_to_basket"),
    path("landing/", views.ProductLandingPageView.as_view(), name="landing"),
    path("webhooks/stripe/", views.stripe_webhook, name="stripe-webhook"),
]