Getting started with React Stripe.js

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

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

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

    Hey there - react-stripe-js should work fine with React Router v6. If you have any other questions, feel free to reach out to us!

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

      Now 3 years later, ... in the index.js, after wrapping the code with the *async () => {}* I get this error: "Expected an assignment or function call and instead saw an expression"

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

      Replying myself, Matthew Ling's updated code of this implementation overcomes the need for harassing index.js.

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

      ruclips.net/video/e-whXipfRvg/видео.htmlsi=Ayb8EsKUkUqJtGCf

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

    Great vid, thanks! Also a small written recap would be awesome. Maybe even with it's own git repo.

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

      Thanks a lot for the feedback Mikhael! We'll be sure to take this into consideration.

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

      Hey Mikhael, thanks for watching. The code for this episode is available in the repo here: github.com/stripe-samples/developer-office-hours/tree/master/starter/client/react-cra

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

    Amazing. Thanks for sharing!

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

    Pretty intense for me... I wish I could keep up

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

    Thanks, it helped me to put CardElement on my project. I had been stacked for a while.

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

      Thanks for letting us know Oxana, we're glad to hear it!

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

    Awesome !! Thank uu

  • @daviddixx6737
    @daviddixx6737 6 месяцев назад

    It's 2024, February. Is this playlist up-to-date and safe to implement?? Thanks

    • @StripeDev
      @StripeDev  6 месяцев назад +1

      Hi there-thanks for your question! While this playlist contains educational material that could be beneficial for learning purposes, it is not the most current resource for implementing Stripe integrations. We recommend that developers exercise caution and refer to the latest Stripe documentation and API references when building integrations to ensure that you're using the most recent and secure practices.

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

      @@StripeDev Can you please update the youtube videos which are not more actual or save to use? These tutorials are great :-)

  • @PavanKumar-zk1ob
    @PavanKumar-zk1ob 10 месяцев назад

    Hi i was looking for styling the cardElement for this code. I tried the docs , but it was not helpful. Can you help me out in styling the card element. I have used the same react code as you have demostrated.

    • @StripeDev
      @StripeDev  10 месяцев назад

      Hi Pavan. Would you mind sharing more details on this? Have you checked these docs:
      stripe.com/docs/stripe-js/react#customization-and-styling
      stripe.com/docs/elements/appearance-api

    • @PavanKumar-zk1ob
      @PavanKumar-zk1ob 10 месяцев назад

      @@StripeDev hi

    • @StripeDev
      @StripeDev  10 месяцев назад

      Hey there-how can we help?

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

    when users open devtools they can see the result of the fetch getting the publish key right? What benefits does it cover by fetching the key

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

      Hi Saffie! Regardless of how you configure their environment publishable keys are safe to either store on the front-end environment variables or have them saved in the backend and fetch them. Both ways work. In this video it was an architectural choice based on pairing publishable and secret keys, rather than relying on the front-end deciding which key to use and finally having a mismatch between that and the secret key.

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

    is that work with react router dom v6?

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

    Awesome ++++++++

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

    Hi!
    how I can set price and currency?

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

      I have price and currency in my firestore, then i send it to a stripe session in a cloud function. Easy piecy :) See my channel :)

  • @mzafarr
    @mzafarr 6 месяцев назад

    How to add custom css to the form?

    • @StripeDev
      @StripeDev  6 месяцев назад

      Hey Zafar-mind sharing more context on what you're trying to do? We'll take a look.

    • @mzafarr
      @mzafarr 6 месяцев назад

      @@StripeDev I want to customise the css for the Elements component (the react component that when added shows input fields for payment details and pay button, I am unable to find any way of styling it properly.

    • @StripeDev
      @StripeDev  6 месяцев назад

      Thanks for providing additional details. Does this documentation help in what you're trying to do: stripe.com/docs/elements/appearance-api

    • @mzafarr
      @mzafarr 6 месяцев назад

      @@StripeDev Nope didn't find anything that matches exactly with my requirements.

    • @StripeDev
      @StripeDev  6 месяцев назад

      Can you navigate to the section 'Variables' and let us know if you find what you're looking for there?

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

    So does this mean I can set up a payment system for free instead of using something like Shopify? Is there a catch like some some sort of limit to how many products I can sell?

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

      You can set up payment on your platform for free, but they will charge you 2.9% on every transaction done on your platform.

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

      I chose this rout. Said no to Shopify and made my own. Full tutorial on my YT channel :)

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

    what if I have a domain name? should I change the proxy?

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

      Great question! The proxy we are using in this video is localhost for local testing purposes. In production you would want to change that value to whatever domain that you want to have your backend served from.

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

      @@StripeDev do we need to have this proxy code?

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

      We'd need more information to be able to provide an answer on this. Can you either contact us at support.stripe.com or join our Discord server: discord.com/invite/stripe where we'd be happy to chat in more detail.

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

    tip: i used secret key instead of publish key, wasted hours. USE publish key.

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

    Please add video about create account (type: "custom", more advanced), with adding adress, country... and validation, like with `type: "express"` Please!!!

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

      Hi there! You may find this useful: ruclips.net/video/RYiscsdICrs/видео.html but let us know if any questions come up.