Stripe Payment Integration - React and Node.js E-Commerce

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • In this video I will show you how to integrate stripe payment system using React and Node.js in a step by step manner. Enjoy!
    Starter Files and Source Codes: chaoocharles.dev/source-codes...
    Stripe Checkout Documentation: stripe.com/docs/payments/acce...
    Complete Shopping Cart with Auth: • Complete Shopping Cart...
    ✨ Join My Discord Server
    / discord
    Donate 🤑
    📍Donate with PayPal: www.paypal.com/cgi-bin/webscr...
    Sections:
    00:00 - app demo
    06:08 - starter files
    09:32 - stripe docs
    12:14 - Node.js stripe api endpoint
    20:39 - React Pay Button
    36:08 - Charging the Cart Items
    41:47 - Collecting Shipping Information
    SUPPORT MY CHANNEL
    📍SUBSCRIBE: / @chaoocharles
    📍Become a Channel Member: / @chaoocharles
    📍Join My Fun Channel: / @chaaoo
    GET IN TOUCH:
    📍 Twitter: / chaoocharles
    Disclaimer: This video is not sponsored
  • Věda a technologie

Komentáře • 97

  • @ChaooCharles
    @ChaooCharles  Před 2 lety +5

    There are some issues with including the cartItems at the metadata. For now I recommend that you pass an empty array as cartItems. I am also preparing an admin dashboard video, I will make sure to also update you on everything concerning the cartItems, so that we can include them when creating an order. For now follow everything as it is but let cartItems be just an empty array.

  • @Manuevaral
    @Manuevaral Před 9 měsíci +1

    Wowwwww!!! i have been finding this video for stripe from long time ago and finally i got it. love you man appreatiate a lot.

  • @Dhanushsaji
    @Dhanushsaji Před rokem +6

    I searched youtube for hours for a beginner-friendly stripe integration.. This is what I wanted. Thank you...
    You earned a subscriber...🥂🥂❤❤

  • @UddhikaIshara
    @UddhikaIshara Před 9 měsíci

    Thank you very much for this! Appreciate your effort and this tutorial is amazing and very easy to understand! ❤

  • @legendaizy482
    @legendaizy482 Před rokem +1

    Thank you very very much it’s a full and enough stripe tutorial very handy

  • @mustafabursal6101
    @mustafabursal6101 Před rokem

    just enough details, not more not less.. subscribed bro!

  • @njeririziki8949
    @njeririziki8949 Před 2 lety +1

    Finally 😃 I have been waiting for this!

  • @ririyan5960
    @ririyan5960 Před rokem +1

    Hi Chaoo Charles, thank you for your tutorial, your explanation is really good

  • @darx9050
    @darx9050 Před 2 lety

    This is gold, thanks 👍

  • @MatthewLong-ot3hh
    @MatthewLong-ot3hh Před 9 měsíci

    Awesome tutorial! Thanks

  • @jirikolb7154
    @jirikolb7154 Před rokem

    Thanks a lot for this tutorial!

  • @hesbonobare2184
    @hesbonobare2184 Před 9 měsíci +2

    This might be the best Kenyan coding channel that I have come across . Thumbs up 👍

  • @chrisqiuu
    @chrisqiuu Před rokem +3

    thanks man, THIS is the PERFECT tutorial for stripe checkout and the BEST I have watched so far. You saved my project. I was using sandbox paypal integration but they have lots of errors. And then I saw this tutorial, it saved my project. Thank you so much. You just earned another subscriber!

  • @azaanibrahimmohamed2846
    @azaanibrahimmohamed2846 Před 5 měsíci

    Thank you very much for helping me with my e-commerce project

  • @wanfer09lan42
    @wanfer09lan42 Před rokem

    Sos el mejor Chao Saludos desde argentina !

  • @alejandroperalta4294
    @alejandroperalta4294 Před 11 měsíci

    Dude you are awesome!

  • @mahmodsamir5110
    @mahmodsamir5110 Před 3 měsíci

    i cant really appreciate you, you did a great job thank you

  • @hesbonobare2184
    @hesbonobare2184 Před 9 měsíci

    Good tutorial 👍,KE all the way 🎉

  • @lolashepota4050
    @lolashepota4050 Před 2 lety

    Thank you so much! Well done!!!

  • @abrehamtilahun4820
    @abrehamtilahun4820 Před 3 měsíci +1

    Thanks a lot Chaoo charles from your African brother, keep it up

  • @patil-manish
    @patil-manish Před rokem

    Great 😊 Bro!! Keep it up 🙂

  • @alexanderpayes2781
    @alexanderpayes2781 Před rokem +1

    You're the best 👌👌

  • @Abram-gb3ij
    @Abram-gb3ij Před 7 měsíci

    a question in the slices/api file that you have put and what it is for?

  • @umairahmed2657
    @umairahmed2657 Před měsícem

    great work

  • @vinayprince6267
    @vinayprince6267 Před 2 lety

    Awesome job explaining is good 👍

  • @KristijanStosic
    @KristijanStosic Před 2 lety

    Thank you so much, this helped only !

    • @ChaooCharles
      @ChaooCharles  Před 2 lety

      You're welcome 😊

    • @KristijanStosic
      @KristijanStosic Před 2 lety

      @@ChaooCharles Can i contact you privately i need some help with stripe and orders

    • @ChaooCharles
      @ChaooCharles  Před 2 lety

      @@KristijanStosic a bit busy at the moment, but I'm on twitter @chaoocharles

  • @usamaUzair343
    @usamaUzair343 Před 13 dny

    Awesome tutorial, I am having an issue, Once I go to checkout and back without paying its not showing any transactions with incomplete? is that a new feature? or any error
    Only showing the succeededs

  • @MicahFishel
    @MicahFishel Před rokem

    Everything made perfect sense! Do you know how I should upload my project to cPanel? Having a NodeJS Backend and a react frontend makes it kinda hard. Any help is appreciated thx!

  • @arghaghosh5561
    @arghaghosh5561 Před 3 měsíci

    Sir I am using real cards in test more . What error message should it show.

  • @DanPeal1
    @DanPeal1 Před 9 měsíci

    very good!

  • @fionagonza8829
    @fionagonza8829 Před 10 měsíci

    Thank you sir

  • @kartikbh3096
    @kartikbh3096 Před rokem

    Thank you

  • @fariedomar401
    @fariedomar401 Před rokem

    Hey man, there is a problem when I save order into DB while I use mongoDB product to make order,
    when I make order it dose not store the image and id of the product into mongoDB,
    could you please help me

  • @vunguyenphuong1900
    @vunguyenphuong1900 Před 2 měsíci

    tks so much

  • @nwobodofelix4859
    @nwobodofelix4859 Před 2 lety +1

    Such a great job you did here..how about other payment gateway since I am unable to use stripe at the moment in Nigeria and secondly how can I arrange my products in categories and display them on their individual components... Thank you once more and God bless you

  • @jirikolb7154
    @jirikolb7154 Před rokem

    I got this problem could someone help me please?
    Uncaught TypeError: Cannot read properties of undefined (reading '_id')

  • @rahulpatil4144
    @rahulpatil4144 Před rokem

    hey bro please help me .. when we click on checkout automatic total is coming.. but I want to add extra 3.70$ in subtotal how can I add that. 3.70 is a service charge

  • @user-vy8pm9mn3q
    @user-vy8pm9mn3q Před 7 měsíci

    Thanks

  • @mustalichunawala6156
    @mustalichunawala6156 Před rokem

    I also want the order details to be stored in mongodb after payment is completed successfully how do i do that?

  • @shakirkamal4958
    @shakirkamal4958 Před 2 měsíci

    Hi My images are not showing in the checkoutpage

  • @kamichikora6035
    @kamichikora6035 Před rokem

    Good stuff

  • @omargbreil-re5nn
    @omargbreil-re5nn Před 3 měsíci

    thanks

  • @sinistersinister4325
    @sinistersinister4325 Před 9 měsíci

    stripe checkout form not showing should i install to react ‘stripe.js’

  • @tmomar6910
    @tmomar6910 Před 2 lety

    Great works

  • @twentyfourseven853
    @twentyfourseven853 Před rokem

    Subscribed

  • @_Dipanshukhetawat
    @_Dipanshukhetawat Před rokem

    How to apply api call on add to cart button ?
    Please make video

  • @onigbindedavid6630
    @onigbindedavid6630 Před 10 dny

    Lots of love ❤️ from Nigeria 🇳🇬 @charles 🇰🇪

    • @ChaooCharles
      @ChaooCharles  Před 10 dny

      @@onigbindedavid6630 ❤️❤️

    • @onigbindedavid6630
      @onigbindedavid6630 Před 10 dny

      @ChaooCharles please I have a question on this, how can we send the receipt of order created to the customer ??? Immediately the payment is successful or failed

    • @onigbindedavid6630
      @onigbindedavid6630 Před 10 dny

      Via email

  • @user-yv4rk6it4m
    @user-yv4rk6it4m Před rokem +1

    Brother, I am using the same project, but for some reason the images are not showing up on the stripe payment screen, I tried to log the images content, but i was getting 'undefined'. Please look into this request. Thank you

    • @AAOhranger
      @AAOhranger Před 4 měsíci

      Did you ever find a solution?

  • @aponsaha5957
    @aponsaha5957 Před 2 lety

    metadata string length for customer is 500 at max.
    what is best way to keep cart data other than metadata when cart items are larger than expected ?

    • @ChaooCharles
      @ChaooCharles  Před 2 lety +1

      For now pass an empty array, I found out that we can get the cartItems from line Items. I'm preparing another video where I will update everything to avoid these errors. But meanwhile you can check this article stripe.com/docs/api/checkout/sessions/line_items

    • @aponsaha5957
      @aponsaha5957 Před 2 lety

      @@ChaooCharles Thanks man, appreciate it. Looking forward to your next video.

    • @ChaooCharles
      @ChaooCharles  Před 2 lety

      @@aponsaha5957 okay, but might take a while coz I'm also covering the admin dashboard

  • @ilhomyuldoshev5033
    @ilhomyuldoshev5033 Před měsícem

    Bro, there's something wrong with the sound in the video, I can't hear any sound from the right side of the headset.

  • @gagan3786
    @gagan3786 Před rokem

    super super

  • @AbdulQayyum-qe4qz
    @AbdulQayyum-qe4qz Před rokem

    HI its happy to learn from this vedio butt there is one big issue for me . after the session has been created and it redirect the user to payment page and at the same time i want to save oorder in mongo db after paymentt successful ,now suppose our session in created and order is daved in db and user in redirected to session url and if user click on back buttom our payment is cancled and user is redirected automatically to cabcel page and notice one thing our oder is saved in db and payment is not completed yet ,i just want to create order after payment successfull

    • @ChaooCharles
      @ChaooCharles  Před rokem

      Try stripe webhooks, try next part of this video

    • @AbdulQayyum-qe4qz
      @AbdulQayyum-qe4qz Před rokem

      @@ChaooCharles oky start it now

    • @ChaooCharles
      @ChaooCharles  Před rokem

      czcams.com/video/_TVrn-pyTo8/video.html check that link,

    • @AbdulQayyum-qe4qz
      @AbdulQayyum-qe4qz Před rokem

      I see this vedio butt how /webhook api is called after session payment completed ?

    • @ChaooCharles
      @ChaooCharles  Před rokem

      @@AbdulQayyum-qe4qz webhook listens to stripe events, you can make it listen to a successful payment and then create order after that

  • @shakilahmed6870
    @shakilahmed6870 Před rokem +18

    My right ear is felling so alone

    • @SanjuKumar-hk8yy
      @SanjuKumar-hk8yy Před rokem +1

      I was thinking my right earbuds has been spoil but not.🤣🤣🤣

    • @kalahari8295
      @kalahari8295 Před rokem

      I had to see for my self. Damnn 😭

    • @LordR123
      @LordR123 Před rokem

      hahahahahaahahh

  • @mdazimbabu5001
    @mdazimbabu5001 Před rokem

    How I can retrieve the data after payment

  • @Oluwadedemilade.
    @Oluwadedemilade. Před 2 lety +1

    I have watched and implemented basically all your build
    Is it possible i have your contact details in other to reach out when i have a problem with my personal build..this will mean alot🙏

  • @_Dipanshukhetawat
    @_Dipanshukhetawat Před rokem

    Client url ?

  • @jarvisai6917
    @jarvisai6917 Před rokem

    Can you share your vscode theme?

  • @bytewavenetworks
    @bytewavenetworks Před rokem

    do mpesa intergration pls

  • @rohithn-76
    @rohithn-76 Před 3 měsíci

    No github code

  • @syydsalman
    @syydsalman Před rokem

    thanks my nigga, I appreciate your work

  • @tonyvito5062
    @tonyvito5062 Před rokem

    I thought my headphones aren't working after checking out I found out that you has a problem in the sound , man fix your audio I almost messed my headphones cuz of this video

  • @Rud331
    @Rud331 Před rokem

    is the payment real or dummy

  • @Kenz-zs8in
    @Kenz-zs8in Před 5 měsíci

    Confused... How many people have been successful by following this video? even the source code has much more than that to make this work...😕

  • @arsalanawan7516
    @arsalanawan7516 Před rokem

    you provide code of something else

  • @Sky-yy
    @Sky-yy Před 2 lety

    There's no voice

  • @dharmeshgohil9375
    @dharmeshgohil9375 Před 2 lety +1

    Expecting login using instragram ,facebook and gmail tutorial