diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-19 21:35:20 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-19 21:35:20 +0100 |
commit | 9b06fa6596def3505af076d6f8807a251c4162e4 (patch) | |
tree | 55f15a16aa4ef00f9050eaefac413933d203c3e3 /alphabetlearning/payments/urls.py | |
parent | 1e1a2f6ac2cadfbc57cc855a67498af097391caf (diff) |
Add multiple items to the cart and Stripe process
- Very rough but it works
- Multiple items can be added to cart
- Can be bought with stripe
- Shopping cart is deleted after successful transaction
Diffstat (limited to 'alphabetlearning/payments/urls.py')
-rw-r--r-- | alphabetlearning/payments/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alphabetlearning/payments/urls.py b/alphabetlearning/payments/urls.py index b782bdc..d5b0dd5 100644 --- a/alphabetlearning/payments/urls.py +++ b/alphabetlearning/payments/urls.py @@ -16,7 +16,7 @@ urlpatterns = [ views.CreateCheckoutSessionView.as_view(), name="create-checkout-session", ), - path("add-to-card/<int:resource_id>", views.add_to_cart, name="add_to_cart"), + 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"), ] |