Stripe Checkout - Django Ecommerce Website - Htmx and Tailwind

In part seventeen of this python/django e-commerce website series, we will make it possible to checkout using Stripe.

Part 17 - Todolist
-Fix decrement to zero items
-Install and set up stripe
-Include public key in the checkout page
-Create view for creating checkout session
-Validate checkout form and implement stripe

Comments

Christian | Nov 09, 22 05:29

Hello Stain, how are you? at the end of this session I got a server Error I could solve, hope you can help with it, I copy and paste your code from your github account but I could not solve it, this is my server error TypeError: Order() got unexpected keyword arguments: 'payment_intent', 'paid_amount' and the catch promise error from the UI is Errors SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Christian | Nov 09, 22 05:38

here is a video with the problem I mentioned above https://www.loom.com/share/94d91e60b1c94b4bb30f046c07199d3b

Add comment

Newsletter

Subscribe to my weekly newsletter. One time per week I will send you a short summary of the tutorials I have posted in the past week.