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

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 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!

ความคิดเห็น • 111

  • @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

  • @kristijanlazarev
    @kristijanlazarev 10 หลายเดือนก่อน +2

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

    • @CodeWithMasood
      @CodeWithMasood  10 หลายเดือนก่อน +1

      Glad to hear that!

  • @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.

    • @CodeWithMasood
      @CodeWithMasood  ปีที่แล้ว +2

      Glad to hear that my friend! Thanks

  • @ShivamKendre-fc3su
    @ShivamKendre-fc3su 4 วันที่ผ่านมา

    Great video make on recurring payment

  • @didarulislam6650
    @didarulislam6650 2 หลายเดือนก่อน +1

    Best Tutorial ever...

  • @zakariaelkhadir9952
    @zakariaelkhadir9952 9 วันที่ผ่านมา

    Thank you very informative,
    keep going

  • @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

  • @sufyanshoaib
    @sufyanshoaib 8 หลายเดือนก่อน +1

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

  • @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

  • @raakshas5547
    @raakshas5547 หลายเดือนก่อน

    Love from India bro

  • @arghaghosh5561
    @arghaghosh5561 10 หลายเดือนก่อน

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

  • @desi-tech-academy
    @desi-tech-academy ปีที่แล้ว +2

    I would love to see recurring payments videos too

  • @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 10 หลายเดือนก่อน

      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

  • @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?

  • @BilalShahid-c3q
    @BilalShahid-c3q 5 หลายเดือนก่อน

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

  • @zaheeruddin603
    @zaheeruddin603 10 หลายเดือนก่อน

    thank you, it works!

  • @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?

  • @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!

  • @BharateshVR
    @BharateshVR ปีที่แล้ว +1

    how to get checkout transaction details after payment is successful ?

  • @haileiyesus29
    @haileiyesus29 ปีที่แล้ว +1

    Thanks very much bro, it's really useful video

  • @codingwithankit7619
    @codingwithankit7619 หลายเดือนก่อน

    Thanks a lot. this video is very helpfull.

  • @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 10 หลายเดือนก่อน

      @@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

  • @dgdmenezes
    @dgdmenezes ปีที่แล้ว +1

    Thank you, you are amazing!

  • @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

  • @keralatv2571
    @keralatv2571 ปีที่แล้ว

    Really good video brother, you are amazing

  • @Abiram77
    @Abiram77 17 วันที่ผ่านมา

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

    • @ramsuraj1266
      @ramsuraj1266 6 วันที่ผ่านมา

      react-toast
      pnpm add react-hot-toast

  • @kishan_psd
    @kishan_psd ปีที่แล้ว +2

    Make a detailed video on Redux.

    • @CodeWithMasood
      @CodeWithMasood  ปีที่แล้ว +2

      I will create this tutorial soon!

  • @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  3 หลายเดือนก่อน +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

  • @adarshchaudhary5701
    @adarshchaudhary5701 2 หลายเดือนก่อน

    saying apiURL is not definet , what to do?

  • @prettypointlessvideo
    @prettypointlessvideo 4 หลายเดือนก่อน

    thanks bro that was useful

  • @HasnainMalikQF
    @HasnainMalikQF ปีที่แล้ว

    Thank you, you saved my day😊

  • @JothivaananM
    @JothivaananM 9 หลายเดือนก่อน

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

  • @ilikethemost
    @ilikethemost 11 หลายเดือนก่อน

    please tell will it word for subscription model

  • @robinyzewyn7292
    @robinyzewyn7292 9 หลายเดือนก่อน

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

    • @drake397
      @drake397 20 วันที่ผ่านมา

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

  • @geekyskill4156
    @geekyskill4156 ปีที่แล้ว

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

  • @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?

  • @akashsahoo2421
    @akashsahoo2421 10 หลายเดือนก่อน

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

    • @CodeWithMasood
      @CodeWithMasood  9 หลายเดือนก่อน +1

      No it should work cuz stripe is available in india

  • @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,

  • @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

  • @cooltv9943
    @cooltv9943 ปีที่แล้ว +1

    well done

  • @seroyjosielmarkm.2736
    @seroyjosielmarkm.2736 10 หลายเดือนก่อน

    Does it works in Philippines?

  • @zaighamabbas8739
    @zaighamabbas8739 8 หลายเดือนก่อน

    Can i use 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

  • @RajeshMudi
    @RajeshMudi 8 หลายเดือนก่อน

    can i accept INR if possible please guide ??

    • @CodeWithMasood
      @CodeWithMasood  6 หลายเดือนก่อน +1

      Please visit official docs

  • @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 ❤

  • @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 2 หลายเดือนก่อน

    what is apiURL

    • @CodeWithMasood
      @CodeWithMasood  2 หลายเดือนก่อน +1

      This is backend api node.js server

  • @techrify1146
    @techrify1146 10 หลายเดือนก่อน

    helpfull

  • @zahirali2275
    @zahirali2275 ปีที่แล้ว +1

    Stripe integration k leye account hona zarori hai

  • @HistoryHouse45
    @HistoryHouse45 ปีที่แล้ว +1

    waiting for redux course

  • @MostofaFatin-r1w
    @MostofaFatin-r1w หลายเดือนก่อน

    its for professional revision video not for beginners

  • @AyushJain-b3h
    @AyushJain-b3h 2 หลายเดือนก่อน +1

    video is not in detail and also unable to learn it

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx ปีที่แล้ว +1

    bhai aoa subscription base b veido banao pls

    • @CodeWithMasood
      @CodeWithMasood  ปีที่แล้ว

      Will create the subscription version soon!

  • @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

  • @AhmadjavedShaik
    @AhmadjavedShaik 15 วันที่ผ่านมา

  • @shivammchaudhary4100
    @shivammchaudhary4100 9 หลายเดือนก่อน +1

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

  • @dj10schannel
    @dj10schannel 7 หลายเดือนก่อน

    👍

  • @matheusfigueiredo3181
    @matheusfigueiredo3181 4 หลายเดือนก่อน

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

  • @abc7089
    @abc7089 8 หลายเดือนก่อน

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

    • @CodeWithMasood
      @CodeWithMasood  6 หลายเดือนก่อน

      Thanks for your feedback!

  • @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