How to integrate Stripe Payment in React and Node.js (Step by Step)!

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • In this video we will see how to integrate stripe payment gateway in React.js and Node.js
    🎁Complete Full Stack Ecommerce Application With Stripe Integration Source Code-
    ☑ / complete-full-stack-ec...
    👋Connect With Me:
    ▶Facebook - / official.codewithmasood
    ▶Instagram - / codewithmasood.official
    ▶Blog - / codewithmasood
    ▶Pinterest - / codewithmasood
    📙Must Read Books That Will Transform Your Thinking-
    ▶Psychology of Money: amzn.to/3jqvhyp
    ▶How to Win Friends and Influence People: amzn.to/3GifLh7
    ▶Power of Habit: amzn.to/3FRszcW
    ▶Ego is the Enemy: amzn.to/3GmZA26
    ▶Cracking the Coding Interview: amzn.to/3C2bYBW
    ▶Introduction to Algorithms: amzn.to/3jzkt1f
    ▶Cryptography and network security: amzn.to/3WQrol3
    #react
    #stripe
    #mernstack
    #codewithmasood
    #programming
    #coding
    DISCLAIMER: Some of the links in the description above are affiliate links, which means that if you click on one of the links and make a purchase, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!

КОМЕНТАРІ • 112

  • @IbrahimKhalil-um9co
    @IbrahimKhalil-um9co 8 місяців тому +2

    Where is the Github code repo??

    • @CodeWithMasood
      @CodeWithMasood  6 місяців тому +1

      The code is in patreon brother, shared as the first link in description box below:)

  • @MonaSah-k4k
    @MonaSah-k4k 11 місяців тому +3

    This video is very helpful for me and everyone who stuck any E Commerce payment section. in this video you can explain strips in a very simple and clear way thanks a lot

  • @daviddixx6737
    @daviddixx6737 Рік тому +4

    Simple and straight to the point. Thank you very much

  • @kelvincarvalhos
    @kelvincarvalhos Рік тому +1

    Thank you very much, friend! Your video helped me a lot, I was racking my brain all day and your video was spot on in solving my problem. Watching from Brazil.

  • @kristijanlazarev
    @kristijanlazarev 10 місяців тому +2

    I tried many, this is the first one that worked wow

  • @sufyanshoaib
    @sufyanshoaib 8 місяців тому +1

    Good work Masood, enjoyed your tutorial. Keep it up.👏

  • @zakariaelkhadir9952
    @zakariaelkhadir9952 11 днів тому

    Thank you very informative,
    keep going

  • @ShivamKendre-fc3su
    @ShivamKendre-fc3su 6 днів тому

    Great video make on recurring payment

  • @didarulislam6650
    @didarulislam6650 2 місяці тому +1

    Best Tutorial ever...

  • @maxkupperberg3204
    @maxkupperberg3204 Рік тому

    This is awesome! I am using this same stack and was struggling at this point, can't wait to give your solution a try.

  • @X3NOGLADIAT0R850
    @X3NOGLADIAT0R850 Місяць тому +1

    you are the goat

  • @desi-tech-academy
    @desi-tech-academy Рік тому +2

    I would love to see recurring payments videos too

  • @zaheeruddin603
    @zaheeruddin603 10 місяців тому

    thank you, it works!

  • @codingwithankit7619
    @codingwithankit7619 Місяць тому

    Thanks a lot. this video is very helpfull.

  • @haileiyesus29
    @haileiyesus29 Рік тому +1

    Thanks very much bro, it's really useful video

  • @dgdmenezes
    @dgdmenezes Рік тому +1

    Thank you, you are amazing!

  • @pritammagdum24
    @pritammagdum24 11 місяців тому

    Okay, now I understand why stripe gives error when I choose India Location, Thank You Bro for making this amazing video

    • @imvikashkk
      @imvikashkk 11 місяців тому

      Hey! Bro I am also getting error....... How Can I fix it ?

    • @akashsahoo2421
      @akashsahoo2421 10 місяців тому

      it is showing me a error related to indian regulations
      does it not work in india

  • @keralatv2571
    @keralatv2571 Рік тому

    Really good video brother, you are amazing

  • @HasnainMalikQF
    @HasnainMalikQF Рік тому

    Thank you, you saved my day😊

  • @prettypointlessvideo
    @prettypointlessvideo 4 місяці тому

    thanks bro that was useful

  • @raakshas5547
    @raakshas5547 Місяць тому

    Love from India bro

  • @kishan_psd
    @kishan_psd Рік тому +2

    Make a detailed video on Redux.

  • @Maryame903
    @Maryame903 Рік тому +7

    Thank you, Are you going to post the source code of the complete site or do a tutorial so that we can reproduce it?

    • @CodeWithMasood
      @CodeWithMasood  Рік тому +3

      Join me on Patreon and I will share the source code with you. You can message me their once you joined!

    • @imvikashkk
      @imvikashkk 11 місяців тому

      @@CodeWithMasoodi got an error

    • @merc.5802
      @merc.5802 10 місяців тому

      @@CodeWithMasood laalchi bhikari

    • @hisexcellencykingderp
      @hisexcellencykingderp 9 місяців тому

      @@imvikashkkme too the frontend keeps throwing 500 error.

    • @nanditbro6360
      @nanditbro6360 8 місяців тому

      @@CodeWithMasood please give source code i will face problem from three days

  • @gulzarahamed1152
    @gulzarahamed1152 11 місяців тому +2

    i have a doubt i am creating dummy project of ecommerce website so i want to use test mode only, i don't want user to lose any real time payment using stripe test mode if i deploy the stripe of test mode will it work for my dummy project? let me know quickly

  • @hisexcellencykingderp
    @hisexcellencykingderp 9 місяців тому +1

    At 6:33 what exactly are you supposed to put in the place of ${apiURL} ? This is not explained

    • @hisexcellencykingderp
      @hisexcellencykingderp 9 місяців тому

      i keep getting 500 error @codewithmasood

    • @CodeWithMasood
      @CodeWithMasood  9 місяців тому +1

      Ok this is the api key for server like, where your server is running put that here,

    • @hisexcellencykingderp
      @hisexcellencykingderp 9 місяців тому

      @@CodeWithMasood So if my backend is localhost5000 am I entering it as /localhost5000/create-checkout-session on the frontend code? And the same for the backend?

    • @hisexcellencykingderp
      @hisexcellencykingderp 9 місяців тому

      @@CodeWithMasood the docs said to put it as /create-checkout-session for both… am i supposed to put it as localhost:5000/create-checkout-session for the frontend if my backend is coming out on port 5000?

  • @arghaghosh5561
    @arghaghosh5561 10 місяців тому

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

  • @BilalShahid-c3q
    @BilalShahid-c3q 5 місяців тому

    6:30 why u dont use axios its short your code

  • @bennet3819
    @bennet3819 8 місяців тому

    When I import {loadStripe} from '@stripe/stripe-js' my browser console shows the error "refused to apply inline style because it violates the following content security policy directive...". Does anyone know how to fix the issue?

  • @weepees6013
    @weepees6013 11 місяців тому +2

    Unfortunately this video did not clarify anything for me. I still do not know how to integrate stripe into MY own code

  • @geekyskill4156
    @geekyskill4156 Рік тому

    hello brother please make a video how to desing the product list in strip

  • @cooltv9943
    @cooltv9943 Рік тому +1

    well done

  • @umairmohsin5202
    @umairmohsin5202 5 місяців тому

    I have generated API key in stripe.i am in a test mode
    Pop up appears that complete your account details to recey payments
    Many things are there which are unnecessary for me as I am in a test mode
    If I don't fill account details and try to make test do I receive payment

  • @abhijit4264
    @abhijit4264 4 місяці тому

    Hi @CodeWithMasood Thank you for the tutorial! But I have one query. What if the customer without doing any payment manually enters the success url in the address bar and gets redirected to the success page without doing any actual payment? Is there anything we can do to first confirm whether the payment has really been done?

    • @CodeWithMasood
      @CodeWithMasood  4 місяці тому +1

      Yep in that case the payment would not be done of course but you can also fix it with some logic in the backend or by making this success url bugger and harder to remember and other expiring techniques in the server

  • @Abiram77
    @Abiram77 19 днів тому

    Can anyone tell me which library is using in this video for Toasts/notification

    • @ramsuraj1266
      @ramsuraj1266 8 днів тому

      react-toast
      pnpm add react-hot-toast

  • @abhishekshankar6305
    @abhishekshankar6305 10 місяців тому

    Do we get money , i mean do transition happens? after integrating this?...

    • @CodeWithMasood
      @CodeWithMasood  10 місяців тому +1

      Certainly, if stripe is available in your country and if you switch to actual payment details that you need to put in to your stripe account instead of test mode. You will definitely get payments,

  • @JothivaananM
    @JothivaananM 9 місяців тому

    Is that safe to store secret key in frontend? (env file)

  • @BharateshVR
    @BharateshVR Рік тому +1

    how to get checkout transaction details after payment is successful ?

  • @sajalhsn13
    @sajalhsn13 7 місяців тому +1

    How to get the webhook call to save checkout information in local DB?

    • @CodeWithMasood
      @CodeWithMasood  6 місяців тому +1

      Search it up on official stripe react and node docs man!

  • @TechLead99
    @TechLead99 6 місяців тому +1

    So stripe redirects to FE appliction after success. How does server knows about it?

    • @CodeWithMasood
      @CodeWithMasood  6 місяців тому +1

      Cuz we are using both FE and backend and it is a full stack application, we are using custom pages for checkout and redirections

    • @TechLead99
      @TechLead99 6 місяців тому

      @@CodeWithMasood Ok got it, suppose FE and BE are separate app, then how it will happen, any idea?

  • @ilikethemost
    @ilikethemost 11 місяців тому

    please tell will it word for subscription model

  • @Amazing_recipes_serial
    @Amazing_recipes_serial 9 місяців тому +1

    I am using the content of ur project,can i get copyright issue

    • @CodeWithMasood
      @CodeWithMasood  9 місяців тому +1

      No problem dude, feel free from my side

  • @adarshchaudhary5701
    @adarshchaudhary5701 3 місяці тому

    saying apiURL is not definet , what to do?

  • @tiptrcks3960
    @tiptrcks3960 Рік тому

    Bro y btana k jb payment successful hojegi, then is ko db m kis trah store krwaen g? Aur bijae har bar stripe dashbard pr jany k tmam transactions ka data hm apny custom react dashboard pr kesy show krwaein gyy btw thanks for tutorial ❤

  • @seroyjosielmarkm.2736
    @seroyjosielmarkm.2736 10 місяців тому

    Does it works in Philippines?

  • @techrify1146
    @techrify1146 10 місяців тому

    helpfull

  • @HistoryHouse45
    @HistoryHouse45 Рік тому +1

    waiting for redux course

  • @robinyzewyn7292
    @robinyzewyn7292 9 місяців тому

    When/where do you save it in your database when the payment is succesfull?

    • @drake397
      @drake397 22 дні тому

      I guess store it in the orders module, after successful payments

  • @zaighamabbas8739
    @zaighamabbas8739 8 місяців тому

    Can i use in Pakistan

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx Рік тому +1

    bhai aoa subscription base b veido banao pls

  • @RajeshMudi
    @RajeshMudi 8 місяців тому

    can i accept INR if possible please guide ??

  • @fitNdedicated
    @fitNdedicated 3 місяці тому

    Hello can you please help me out I got trouble

    • @CodeWithMasood
      @CodeWithMasood  3 місяці тому

      @@fitNdedicated Certainly please reach out on insta or Patreon

  • @aliahmed-vd2nt
    @aliahmed-vd2nt День тому

    Bro how you use stripe in Pakistan

  • @websterbisoles417
    @websterbisoles417 11 місяців тому +1

    i try to make it what you teach but im getting 401 unauthrorized can explain to me? what happen?

    • @sikusk7422
      @sikusk7422 11 місяців тому

      same happend with me

    • @websterbisoles417
      @websterbisoles417 11 місяців тому

      his not interested replying us thats sad@@sikusk7422

  • @zahirali2275
    @zahirali2275 Рік тому +1

    Stripe integration k leye account hona zarori hai

  • @AhmadjavedShaik
    @AhmadjavedShaik 17 днів тому

  • @adarshchaudhary5701
    @adarshchaudhary5701 3 місяці тому

    what is apiURL

  • @MostofaFatin-r1w
    @MostofaFatin-r1w Місяць тому

    its for professional revision video not for beginners

  • @akashsahoo2421
    @akashsahoo2421 10 місяців тому

    it is showing me a error related to indian regulations
    does it not work in india

    • @CodeWithMasood
      @CodeWithMasood  10 місяців тому +1

      No it should work cuz stripe is available in india

  • @AyushJain-b3h
    @AyushJain-b3h 2 місяці тому +1

    video is not in detail and also unable to learn it

  • @Mardo716
    @Mardo716 8 місяців тому

    hey broh can you help me polease?

    • @CodeWithMasood
      @CodeWithMasood  6 місяців тому +1

      Hey, sorry for late reply but yes please message me on insta or fb and i can help you out

  • @dj10schannel
    @dj10schannel 7 місяців тому

    👍

  • @abc7089
    @abc7089 8 місяців тому

    Dude, you're clicking too fast and jumping from page to page too fast!

  • @matheusfigueiredo3181
    @matheusfigueiredo3181 4 місяці тому

    this was such a confusing and rushed video... holly shit.

  • @shivammchaudhary4100
    @shivammchaudhary4100 9 місяців тому +1

    Worst video .... not telling the process you just wanted to create the video

  • @NikulPipariya-hg5mb
    @NikulPipariya-hg5mb Рік тому +8

    change stupid theme... I can even see what you have written even though in retina disaply..... pure black is distracting.... just use normal one came by default.... otherwise thanks for tutorial...

    • @emmanuelakogwu9078
      @emmanuelakogwu9078 10 місяців тому +13

      Address people with courtesy….. this is not a good way to give feedback

    • @mahmoudmostafa2827
      @mahmoudmostafa2827 2 місяці тому

      This is stupied comment