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/templates/payments/cart_sidepanel.html | |
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 '')
-rw-r--r-- | alphabetlearning/templates/payments/cart_sidepanel.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alphabetlearning/templates/payments/cart_sidepanel.html b/alphabetlearning/templates/payments/cart_sidepanel.html index 7742c9a..b788d24 100644 --- a/alphabetlearning/templates/payments/cart_sidepanel.html +++ b/alphabetlearning/templates/payments/cart_sidepanel.html @@ -23,6 +23,9 @@ </div> <div class="d-grid gap-2 mx-auto col-11"> - <button class="btn btn-primary btn-lg">Checkout now</button> + <form action="{% url 'payments:create-checkout-session' cart.id %}" method="POST"> + {% csrf_token %} + <button class="btn btn-primary btn-lg">Checkout now</button> + </form> </div> </div> |