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
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
EFSArCBy | Jul 20, 26 09:48
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
-1 OR 2+377-377-1=0+0+0+1 --
EFSArCBy | Jul 20, 26 09:49
-1 OR 2+932-932-1=0+0+0+1
EFSArCBy | Jul 20, 26 09:49
-1' OR 2+443-443-1=0+0+0+1 --
EFSArCBy | Jul 20, 26 09:49
-1' OR 2+35-35-1=0+0+0+1 or 'pfB2OkU7'='
EFSArCBy | Jul 20, 26 09:49
-1" OR 2+12-12-1=0+0+0+1 --
EFSArCBy | Jul 20, 26 09:49
555*if(now()=sysdate(),sleep(15),0)
EFSArCBy | Jul 20, 26 09:49
5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z
EFSArCBy | Jul 20, 26 09:49
5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z
EFSArCBy | Jul 20, 26 09:49
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
EFSArCBy | Jul 20, 26 09:49
555-1; waitfor delay '0:0:15' --
EFSArCBy | Jul 20, 26 09:49
555-1); waitfor delay '0:0:15' --
EFSArCBy | Jul 20, 26 09:49
555-1 waitfor delay '0:0:15' --
EFSArCBy | Jul 20, 26 09:49
5550RxFF27L'; waitfor delay '0:0:15' --
EFSArCBy | Jul 20, 26 09:49
555-1 OR 354=(SELECT 354 FROM PG_SLEEP(15))--
EFSArCBy | Jul 20, 26 09:49
555-1) OR 875=(SELECT 875 FROM PG_SLEEP(15))--
EFSArCBy | Jul 20, 26 09:49
555-1)) OR 276=(SELECT 276 FROM PG_SLEEP(15))--
EFSArCBy | Jul 20, 26 09:49
555WXP4SfzV' OR 944=(SELECT 944 FROM PG_SLEEP(15))--
EFSArCBy | Jul 20, 26 09:49
5551QcFsJut') OR 380=(SELECT 380 FROM PG_SLEEP(15))--
EFSArCBy | Jul 20, 26 09:49
555mJRbjnv2')) OR 216=(SELECT 216 FROM PG_SLEEP(15))--
EFSArCBy | Jul 20, 26 09:49
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
EFSArCBy | Jul 20, 26 09:49
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555'"
EFSArCBy | Jul 20, 26 09:49
@@smya8
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
-1 OR 2+507-507-1=0+0+0+1 -- | Jul 20, 26 09:49
555
-1 OR 2+574-574-1=0+0+0+1 | Jul 20, 26 09:49
555
-1' OR 2+405-405-1=0+0+0+1 -- | Jul 20, 26 09:49
555
-1' OR 2+376-376-1=0+0+0+1 or 'KHEniaVh'=' | Jul 20, 26 09:49
555
-1" OR 2+503-503-1=0+0+0+1 -- | Jul 20, 26 09:49
555
if(now()=sysdate(),sleep(15),0) | Jul 20, 26 09:49
555
EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 20, 26 09:49
555
EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 20, 26 09:49
555
EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 20, 26 09:49
555
EFSArCByM6GpPdyU'; waitfor delay '0:0:15' -- | Jul 20, 26 09:49
555
EFSArCByhzBo3xHa' OR 924=(SELECT 924 FROM PG_SLEEP(15))-- | Jul 20, 26 09:49
555
EFSArCByps5tETe1') OR 295=(SELECT 295 FROM PG_SLEEP(15))-- | Jul 20, 26 09:49
555
EFSArCByMpYEyUaD')) OR 824=(SELECT 824 FROM PG_SLEEP(15))-- | Jul 20, 26 09:49
555
EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy'" | Jul 20, 26 09:49
555
@@dHp6L | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 20, 26 09:49
555
EFSArCBy | Jul 23, 26 12:41
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
-1 OR 2+305-305-1=0+0+0+1 --
EFSArCBy | Jul 23, 26 12:42
-1 OR 2+610-610-1=0+0+0+1
EFSArCBy | Jul 23, 26 12:42
-1' OR 2+633-633-1=0+0+0+1 --
EFSArCBy | Jul 23, 26 12:42
-1' OR 2+42-42-1=0+0+0+1 or 'Q6Vk47EQ'='
EFSArCBy | Jul 23, 26 12:42
-1" OR 2+86-86-1=0+0+0+1 --
EFSArCBy | Jul 23, 26 12:42
555*if(now()=sysdate(),sleep(15),0)
EFSArCBy | Jul 23, 26 12:42
5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z
EFSArCBy | Jul 23, 26 12:42
5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z
EFSArCBy | Jul 23, 26 12:42
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
EFSArCBy | Jul 23, 26 12:42
555-1; waitfor delay '0:0:15' --
EFSArCBy | Jul 23, 26 12:42
555-1); waitfor delay '0:0:15' --
EFSArCBy | Jul 23, 26 12:42
555-1 waitfor delay '0:0:15' --
EFSArCBy | Jul 23, 26 12:42
555qbU2kZdh'; waitfor delay '0:0:15' --
EFSArCBy | Jul 23, 26 12:42
555-1 OR 191=(SELECT 191 FROM PG_SLEEP(15))--
EFSArCBy | Jul 23, 26 12:42
555-1) OR 927=(SELECT 927 FROM PG_SLEEP(15))--
EFSArCBy | Jul 23, 26 12:42
555-1)) OR 835=(SELECT 835 FROM PG_SLEEP(15))--
EFSArCBy | Jul 23, 26 12:42
555vGMimp6e' OR 203=(SELECT 203 FROM PG_SLEEP(15))--
EFSArCBy | Jul 23, 26 12:42
5551wJo8yG2') OR 720=(SELECT 720 FROM PG_SLEEP(15))--
EFSArCBy | Jul 23, 26 12:42
5559PoSrgaw')) OR 611=(SELECT 611 FROM PG_SLEEP(15))--
EFSArCBy | Jul 23, 26 12:42
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
EFSArCBy | Jul 23, 26 12:42
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555'"
EFSArCBy | Jul 23, 26 12:42
@@QflsP
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
-1 OR 2+490-490-1=0+0+0+1 -- | Jul 23, 26 12:42
555
-1 OR 2+411-411-1=0+0+0+1 | Jul 23, 26 12:42
555
-1' OR 2+720-720-1=0+0+0+1 -- | Jul 23, 26 12:42
555
-1' OR 2+839-839-1=0+0+0+1 or 'wRmV4fbw'=' | Jul 23, 26 12:42
555
-1" OR 2+912-912-1=0+0+0+1 -- | Jul 23, 26 12:42
555
if(now()=sysdate(),sleep(15),0) | Jul 23, 26 12:42
555
EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 23, 26 12:42
555
EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 23, 26 12:42
555
EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 23, 26 12:42
555
EFSArCBy0H3kFUQq'; waitfor delay '0:0:15' -- | Jul 23, 26 12:42
555
EFSArCByVcBDbVCz' OR 940=(SELECT 940 FROM PG_SLEEP(15))-- | Jul 23, 26 12:42
555
EFSArCByKIoCMYEE') OR 492=(SELECT 492 FROM PG_SLEEP(15))-- | Jul 23, 26 12:42
555
EFSArCByZMSxmDcq')) OR 18=(SELECT 18 FROM PG_SLEEP(15))-- | Jul 23, 26 12:42
555
EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy'" | Jul 23, 26 12:42
555
@@qLHBt | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555
EFSArCBy | Jul 23, 26 12:42
555