Set Up Payments With ReactJs and Stripe.

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

Комментарии • 154

  • @steverossiter_
    @steverossiter_ 3 года назад +18

    perfect timing - i need a new spatula BADLY so thanks for the reminder

  • @RiteshNEVERUNIFORM
    @RiteshNEVERUNIFORM 2 года назад +4

    Bro you are the only one on the internet with this 😭😭. Thanks is an understatement!!!!!!!!

  • @Byte-Simplified
    @Byte-Simplified Год назад

    its most simplest i have found and still refer to this video when I get stuck. Thanks for this !!!

  • @flaviokonti5522
    @flaviokonti5522 3 года назад +2

    @8:17 just for clarity, you're not passing in error & paymentMethod but destructring return of method and taking those just two vars out of if. Thanks great content, keep it up 😁

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      Thanks for that clarification. Talking and coding at the same time messes me up sometimes lol.

  • @ogs3721
    @ogs3721 Год назад +1

    I don't know if it was vocal fry. If it was, then sorry, it was annoying! But really great tutorial. The way you explained front-end and back-end was top notch. Cleared all my doubts. Thank you

  • @kyungsoohan4112
    @kyungsoohan4112 3 года назад +6

    Really great stuff! Thank you for going from frontend to backend.

  • @SarathChandran96
    @SarathChandran96 3 месяца назад

    Superb. very easy to understand tutorial.

  • @baodoan5420
    @baodoan5420 Год назад

    this is clearest video that ive been seeking 2 days

  • @lindsayaiello501
    @lindsayaiello501 3 года назад +4

    Thank you for a simple and easy tutorial!

  • @madarashogun
    @madarashogun 3 года назад +2

    very good job , probably the best react stripe tutorial on youtube

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      Thanks a lot appreciate that.

    • @worldclasscode1847
      @worldclasscode1847 2 года назад

      Try my Stripe tutorial out too? :) It's the Nike Clone. Click my icon :)

  • @official_smp2017
    @official_smp2017 2 года назад +1

    Had a question. I keep getting a network error for some reason, ERR_CONNECTION_REFUSED. Even though I have everything configured exactly like you do..

  • @ntkteambs
    @ntkteambs 2 года назад +3

    This tutorial is a life-saver for me! Really Good work bro

  • @RiteshNEVERUNIFORM
    @RiteshNEVERUNIFORM 2 года назад +2

    Great Tutorial. I did all but I don't get the green Succesfull message on stripe website. it says "3D Secure attempt incomplete
    The cardholder began 3D Secure authentication but has not completed it.". What do I do ?

  • @naimurrahman9979
    @naimurrahman9979 2 года назад

    Thanks for sharing this, I have a question to you, I like your font you're using in VS Code, what is it?

  • @paulab9310
    @paulab9310 7 месяцев назад

    hey, followed exactly your tutorial but I am getting a 400 error from Stripe. "your testmode Stripe integration is experiencing errors because you’re not providing a return_url in your PaymentIntent.


    The return_url is the url your customer is directed to after they complete their payment. As of version 2023-08-16 of the API, we now require that a return_url is provided upon PaymentIntent confirmation. We recommend updating your code to reflect this change to prevent any further errors."
    Would you consider updating your tutorial to reflect this change? Will try to find how to add this in Stripe's Docs

  • @shawn.builds
    @shawn.builds 2 года назад +1

    awesome video bro. liked & subbed for how smooth the implementation was. how would you modify the payment so that you could send it to a specific user? e.g. I have an app where a company pays influencers, so how would I allow the company to specifically pay out to a certain user?

  • @dbiswas
    @dbiswas Год назад

    Can we do the entire Server side implementation on Google Cloud function ?

  • @aisyahnrlh
    @aisyahnrlh 3 года назад +1

    The explanation's soo clear! Thanks a lot for the video

  • @hemitpatel4758
    @hemitpatel4758 3 года назад

    thank you so much! this helped me so much! i now created my first e-commerce store online thanks to your help.

  • @sebastianreveles3653
    @sebastianreveles3653 7 месяцев назад

    know how to fix the ERROR
    Cannot read properties of null (reading 'useMemo')

  • @Mardo716
    @Mardo716 5 месяцев назад

    strip does bill for people? How can I put more fields in the form? I want the shipping address to send the cookies I sell,

  • @jeanmarteau7729
    @jeanmarteau7729 3 года назад

    thanks mate, awesome tutorial. I really appreciate the way you explained everything

  • @sinicvukaj2974
    @sinicvukaj2974 11 месяцев назад

    I just saw your video and it's great. Never heard of a spatula empire but I want one too

    • @DarwinTutorials
      @DarwinTutorials  11 месяцев назад

      Maybe if we team up we can conquer the market.

  • @m.tufailalichaudhary1218
    @m.tufailalichaudhary1218 2 года назад

    i am getting an error: automatic credit card filling is disabled because this form does not use a secure connection.Can you tell me how to solve it

  • @zmitrook
    @zmitrook 2 года назад

    Thx for the tutorial!
    one thing only...
    just can't take it anylonger... was sitting all day ... but did anyone tried to add (this rotating thing) after button PAY , tried first with useEffect and timeout on async function , then with conditional ternary operator... in rendering , How do i need to put it?.........

  • @attinderpalsingh5745
    @attinderpalsingh5745 Год назад

    Is it possible to implement stripe integration only from the front end? With restricted key ?

  • @jaburu01
    @jaburu01 3 года назад +1

    Amazing video! Perfect video about payment with Stripe. New subscriber.

  • @soulking6982
    @soulking6982 2 года назад

    Thanks Brother Very Much . May God Bless You

  • @wagolemusa3070
    @wagolemusa3070 3 года назад

    Thanks so much brother for the tutorials.

  • @garysenoc4967
    @garysenoc4967 3 года назад

    I tried deploying it in live but I was getting preflight is not successful. How can I resolve this?

  • @malikforz9490
    @malikforz9490 2 года назад

    thanks for the tutorial but i i think we need to have email name and most importantly shipping adress and sending them to stripe so we can see the payment on stripe with all the details how can we do this here ?

  • @StanislavObrazcoff
    @StanislavObrazcoff 3 года назад

    Tnx for a good example how to use it! Have you experience to work with Stripe flow when payment session already created on backend and from React FE need just card data nd continue this payment?

    • @DarwinTutorials
      @DarwinTutorials  3 года назад +1

      I haven't encountered this exact scenario but the stripe docs are some of the best I've seen. So wouldn't be surprised if there was something in there about this.

    • @StanislavObrazcoff
      @StanislavObrazcoff 3 года назад

      @@DarwinTutorials tnx, will check

  • @imranisrar1042
    @imranisrar1042 Год назад

    Thanks, it's very helpful

  • @Antunesthalis
    @Antunesthalis 2 года назад +2

    Hi guys, I came here to say this
    As of Express version 4.16.0,
    If you facing 'bodyParser' is deprecated.
    use the following code on your server
    app.use(express.json());
    app.use(express.urlencoded({ extended: false }));

  • @GemRecipes
    @GemRecipes 2 года назад

    Thank you

  • @Keegan-T
    @Keegan-T Год назад

    thanks!

  • @zainabedin9842
    @zainabedin9842 3 года назад

    I'm getting an error from server side
    "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth"

  • @ahtesamulhaque7507
    @ahtesamulhaque7507 2 года назад

    How can I apply this to a cart with multiple products and I want to checkout for those items in cart?

  • @parkerAmv
    @parkerAmv 2 года назад

    Thank Darwin, this's awesome

  • @notaself
    @notaself 2 года назад

    Love you for this

  • @nicolajslvsten4978
    @nicolajslvsten4978 3 года назад

    can people change the amount in the App which is being sent to the backend ? if not please care to explain why

  • @Firex64
    @Firex64 2 года назад

    Thank you!

  • @adnanrruka5152
    @adnanrruka5152 3 года назад

    Thanks! Best explanation out there!

  • @itgaming136
    @itgaming136 2 года назад

    Thank You for an Awesome Tutorial. But I have one question. When I want to publish it to my own domain, How can I do that with the server running? Thanks

    • @DarwinTutorials
      @DarwinTutorials  2 года назад

      You'll have to set up a server on a service like digital ocean or something similar.

    • @itgaming136
      @itgaming136 2 года назад

      @@DarwinTutorials Thanks 🙏

  • @Seyzo
    @Seyzo Год назад

    Great video and very clear, thanks a lot it helped me!

  • @omar_mtl
    @omar_mtl 3 года назад +1

    Thank you for the video, how do I let client download a file after making the payment through stripe ? Or maybe how to send an automatic email after making the payment ?

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      There are a bunch of ways you could accomplish this but if you wanted to send an email after a successful payment you could look into a service like SendGrid and trigger a send email function on successful payment.

    • @zainabedin9842
      @zainabedin9842 3 года назад

      You can use nodeMailer module for nodejs if you want to send emails.

  • @HoangPhan-le9yh
    @HoangPhan-le9yh 5 месяцев назад

    Hì bro, can u share to me a name of font or extension name of that font u use ? Thanks!

  • @inzamam1320
    @inzamam1320 2 года назад

    Can anyone help me My CardElement from Stripe is just appearing once on every 5 refreshes of the page

  • @blueLab2024
    @blueLab2024 3 года назад

    thanks ,saved my day

  • @PawanKumar-qx5rd
    @PawanKumar-qx5rd 2 года назад

    error and paymentMethod shows undefined what i do ????

  • @pavankumard5276
    @pavankumard5276 11 месяцев назад

    Nice tutorial. But if we make an actual payment where is that money going?

  • @Gaming_with_Martin
    @Gaming_with_Martin 3 года назад

    Nice video I was wondering if you would cover making a social network API with mongodb and apollo server and implement the Follow feature

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      Possibly in the future but most likely not super soon.

  • @tkpcompshd9924
    @tkpcompshd9924 2 года назад

    Thanks Man !

  • @TrueStoryET
    @TrueStoryET 3 года назад +3

    Could you please make one for react native as well?

    • @DarwinTutorials
      @DarwinTutorials  3 года назад +3

      Probably not super soon but I'll add it to the queue

    • @TrueStoryET
      @TrueStoryET 3 года назад

      @@DarwinTutorials That would be so awesome. In my learning process stripe integration in react native is only thing that I can't achieve completely. I did try to make take code from this video and make something similar on react native but without success

  • @19smabtahinoor
    @19smabtahinoor 3 года назад

    Hey @darwin ,, Everything works perfectly but when i click on pay .. it is not show in console successful payment...i cloned your repo but it's not working for me... please give me solution

    • @mohit_50
      @mohit_50 3 года назад

      Did you change the keys?

  • @davidcantumartinez3868
    @davidcantumartinez3868 3 года назад

    thx

  • @ambrosebeavers
    @ambrosebeavers 2 года назад

    Hi there, can you do a vid with this same example using Nextjs, please?

    • @DarwinTutorials
      @DarwinTutorials  2 года назад +1

      That's a good idea I'll try to do a NextJs one sometime soon.

  •  3 года назад

    Does this work on Windows 10?
    Because I'm having errors

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      I haven't tried it out on Windows 10 unfortunately so not really sure.

  • @hrishikeshdalimbkar446
    @hrishikeshdalimbkar446 3 года назад

    which theme and font do you use in your vs code??

  • @عبداللهاللحام-ح5ث
    @عبداللهاللحام-ح5ث 2 года назад

    I don't know how to setup the route of the backend
    It's not work

  • @silentxcure
    @silentxcure 3 года назад

    hi. im getting an error that auto filling is disabled because of an unsecure connection

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      Might be because of using http and not https, you could try changing that.

  • @ankitkumarkarna7608
    @ankitkumarkarna7608 2 года назад +1

    There is a big security issue. Let's say, I pay for 5$ use correct card details but not correct CVV, then the payment will go through in the code.
    To ensure that the payment is successful, use this check:
    Thank me later:
    if (payment.amount !== payment.amount_received) {
    throw "Payment Failed";
    }

  • @jadenficklin6040
    @jadenficklin6040 2 года назад

    followed exactly but getting an error "your card was declined. your request was in live mode, but used a known test card"

    • @DarwinTutorials
      @DarwinTutorials  2 года назад +1

      Seems like you may have it set to live mode on stripe.

    • @jadenficklin6040
      @jadenficklin6040 2 года назад

      @@DarwinTutorials thank you! This worked

  • @현대김-e7j
    @현대김-e7j 3 года назад

    What is the name of the editing tool used in the video (1:38)?

  • @DuttPatel-xd8tm
    @DuttPatel-xd8tm 6 месяцев назад

    Can you help us by hosting this? Cant get any sourse to host a node and react apk

  • @azrallex
    @azrallex 3 года назад

    my console says : localhost:3000/payment (404) not found any fix for this? Please reply

  • @JavascriptForEverything
    @JavascriptForEverything 3 года назад

    Thanks,

  • @yuqingyang3956
    @yuqingyang3956 3 года назад

    If you enter an insufficient funds card number (4000 0000 0000 0002). It won't continue, right?

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      Correct

    • @yuqingyang3956
      @yuqingyang3956 3 года назад

      @@DarwinTutorials Is there any way to fix it?

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      @@yuqingyang3956 It's not really a bug you would want to fix, like you wouldn't want it to go through.

  • @mujahidislamkhan782
    @mujahidislamkhan782 3 года назад +1

    I could not understand the backend part.

    • @worldclasscode1847
      @worldclasscode1847 2 года назад

      Try my tutorial, Nike Clone, it has a step by step installation instruction for the back end parts. :) Click my icon

  • @НиколайТарасов-р2х

    what is the topic?

  • @SunitaDevi-hs7pz
    @SunitaDevi-hs7pz 3 года назад

    Hi I am getting an error please can you help me

  • @geoffreyschuchardt2948
    @geoffreyschuchardt2948 2 года назад

    is anyone else having trouble getting the card module to show up? I have a blue line but that's all. I'm going to try to run the source code and see if it works differently but I copy and pasted the actual source code into my files one by one and it still wasn't working.

    • @geoffreyschuchardt2948
      @geoffreyschuchardt2948 2 года назад

      The source code just ran. I hate this shit. Time to figure out what the fuck I have wrong.

    • @geoffreyschuchardt2948
      @geoffreyschuchardt2948 2 года назад

      yeah I'm not getting what the difference is between my code and yours. I tried everything other than having the back end built out when i was testing the front end. Because I assume it doesn't make a difference because that's when you checked if it was working in your tutorial. I've messed up my dependencies and am completely lost. I'm wonding if it was a font issue. This happens to me with every tutorial. There are a ton of comments from people saying things worked fine while meanwhile something always goes wrong and i copy and past the EXACT same code, and still it doesnt work.

    • @geoffreyschuchardt2948
      @geoffreyschuchardt2948 2 года назад

      Im basically using the comments to vent, my b

    • @inzamam1320
      @inzamam1320 2 года назад

      Bro i am also having the same issue my CardElement show ups only for once on every 5 refreshes i am also searching for the help

  • @onmroman5391
    @onmroman5391 3 года назад

    awesome💪

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 года назад

    Awesome video +++++++++++++++ thank you

  • @Gaming_with_Martin
    @Gaming_with_Martin 3 года назад +1

    How abour a discord server to contact you and share codes

    • @DarwinTutorials
      @DarwinTutorials  3 года назад +1

      If this channel keeps growing and there is some more demand for that I think that might be a good idea.

  • @albertomanuguerra5532
    @albertomanuguerra5532 3 года назад

    What's your font?

  • @emenikeanigbogu9368
    @emenikeanigbogu9368 2 года назад

    getting an invalid hook error

  • @Hanieo1o5
    @Hanieo1o5 3 года назад

    It not woking in my project ToT. Who can help me, pls?

    • @DarwinTutorials
      @DarwinTutorials  2 года назад

      Hmmm which part isn't working for you? Have you tried to clone the repo?

  • @yantan0109
    @yantan0109 3 года назад

    may i know can i import your code to .tsx file?

    • @DarwinTutorials
      @DarwinTutorials  3 года назад

      Yeah, I don't see why not. You may have to add a few typings.

  • @buzzer79
    @buzzer79 2 года назад

    the tutorial is really good , however now every dev has to rewrite the same shit which is plain stupid

  • @SH-lt2iv
    @SH-lt2iv 3 года назад

    damn why did they put the amount in cents LMAO

  • @aleksandaryanchev5743
    @aleksandaryanchev5743 2 года назад

    Why every tutorial need fucking AXIOS

  • @sp-vt4je
    @sp-vt4je Год назад

    Use semicolons ffs

  • @petarpartaloski8889
    @petarpartaloski8889 Год назад

    I love the guide and all, but what the fuck is that font my dude
    Thanks a lot, great explanation!!!

  • @isurumadusanka9256
    @isurumadusanka9256 3 года назад

    Thank you