Creating an order in the database with Stripe webhooks - React and Node.js E-Commerce

preview_player
Показать описание

Sections:
00:00 - intro
01:08 - install stripe CLI
05:07 - create webhook endpoint
15:50 - handling checkout success event
25:45 - create order model
31:26 - save order to database

✨ Join My Discord Server

Donate 🤑

SUPPORT MY CHANNEL

GET IN TOUCH:

Disclaimer: This video is not sponsored
Рекомендации по теме
Комментарии
Автор

bro i see the effort you put in with the terminal, powershell, scoop, etc. I used to do this a long time back. Then I switched to Ubuntu (Linux distro). Trust me life is so much easier and would recommend you too. You won't regret it.

teetanrobotics
Автор

Thank you very much bro, I had a lot of questions about how to handle the customers and orders data after the payment but didn't find out anywhere with an explanation of that process, you left it very clear for me :)

JulioSCayo
Автор

The error occurred because you placed the route handler after calling a body parsing middleware. So to fix that, just cut it and paste it before calling a body parser.

developedbynick
Автор

Thank you so much bro for your effort. I am trying implement stripe payment with webhooks through stripe doc but I not properly understand that in last two day. Now your video clear my concept. ❤from India.

supravatsarkar
Автор

for an entire video I thought my right earphone is gone, then suddenly music played, LOL :)

SurajSingh-luei
Автор

Thank you, you help me a lot. please keep going.

abrehamtilahun
Автор

Thank you soo much the videos, I was looking for integrating stripe to a website, it helped a lot. Quick tip for viewers it's ok for the tution purpose but in production check the product price in server side.

toshitsingh
Автор

Thank you again sir! very helpful tutorial, it's a miracle I came right into your videos. You are a great teacher!

chrisqiuu
Автор

Thank you very much! This was so helpful! Easy to understand! Thank you very much again! ❣

UddhikaIshara
Автор

Quick tip you should make your microphone on both left and right channels instead of just the left

birdboy
Автор

hello how you fixed the error for : stripe trigger payment_intent.succeeded

i am using checkout stripe just like you but still have the 400 post /webhook response

raneemaljamal
Автор

Thank you for new earphones, After listening to your video i found one side of it not working, purchased new ❤ thanks

neeraj_minhas
Автор

could you please implement a frontend for the user order details

vishwachandral
Автор

15:20 I was able to verify the endpoint by adding these lines:

app.use('/api/stripe/webhook', express.raw({ type: 'application/json' })); // <-- FIX
app.use(express.json())
app.use("/api/stripe", stripe);

Kris-tovh
Автор

You are a really good teacher. Thank you❤

feevah_ie
Автор

You are good bro. It is helpful thanks.

michaelrose
Автор

Help please I have a problem with constructEvent it shows me an error No signatures found that match the expected signature for the payload. Are you forwarding the raw request body you received from Stripe? And I collected express.raw({ type: '*/*' })

סטיבברוסילובסקי
Автор

if my stripe listener not in running mode at the the web hook endpoint run automatically by stripe?

vishalsolanki
Автор

I have to integrate stripe in my application. Apart from the "checkout.session.completed" event, is there any other key event that I must need to handle and could you please elaborate the events a bit more, like which one is a must to handle.

umairyatoo
Автор

The size of the metadata is a problem..do you have any alternatives?

Dhanushsaji
join shbcf.ru