Stripe Payments With Nextjs 14 - Full Guide

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 36

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

    thanks for this very clear tutorial!

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

      Glad it was helpful!

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

      @@jeremypersing4484 how do you make a reference to the customer's id after checkout. the email can entered in the payment link can be different from the one your database. any ideas?

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

      If a user enters in a different emails for their account and checkout session, I would deal with this manually. There are probably other ways of doing it, like maybe you could check your db to see if the customers email exists once they purchase their product, and if it doesn't you could create an account which has info stating it still needs to be set up, then alter the auth flow for this special situation. I don't foresee that happening very often, so I would just make sure that customers have the ability to reach you through email or a feedback popup and they will likely reach out with any concerns.

  • @sreerag4368
    @sreerag4368 5 місяців тому +1

    Hey so if I want to accept real payement in my SAAS,should I register my company or something ?

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

      It depends on what you mean by register your company. If you already have a company registered through a state (assuming you’re in the US) then you would use the tax information for that company when setting up your stripe account. But if you mean you want to start accepting payments, and you’re asking do you need a company to start accepting them, the answer is that you do not. You can incorporate a business using stripe though, but personally, I’d make sure my service was actually generating cash before going through that.
      PS. This is not legal advice and I’m not a financial adviser.

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

    Thank you, I enjoyed the video.

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

    does 'customer.subscription.updated' automatically get fired when a user gets pays for the next interval like monthly weekly etc?

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

      I don’t think so. I’m using that webhook for when customers delete their subscription. I think the event “invoice.payment_succeeded” would be what you’re referring to.

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

    Hey man, where i can copy the code? Could you post it in your github repository, please?

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

    Vey helpful.. thanks🙏🏼

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

    great video, helped me out!

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

    If you want a Saas template that uses Nextjs 14 and Stripe, preorder the template at www.nextmantinesaas.com. You can also leave your email there to be notified when it comes out.

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

      This received 2 emails after 2.5k views, so I deemed it not worth pursuing.

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

    Good video however Is it for one time purchase or for subscription?

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

      Thanks. In this video it’s for a one time purchase, but you can make it for a subscription as well using the same logic. You just need to handle it differently when the checkout session completed successfully.

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

    can we integarate payement by card and paypal pls in one form using stripe

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

      Apparently you can but I don't see any configuration for it with the checkout links. docs.stripe.com/payments/paypal/connect-your-paypal-account

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

    Great video 🔥

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

    What about the refund api?

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

      I usually just handle these manually.

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

      @@jeremypersing4484 Okay, thanks for that!

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

      You’re welcome

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

      @@jeremypersing4484 do you manually update the db after refunding? (removing access)?

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

      Yes I would, so long as you don’t want the no longer paying customer to have access.

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

    Would you be interested in being hired to do this integration for a project I’ve been working on? Please let me know how I can reach out to you.

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

      Yeah I could help with something like that. You can reach me by email at jpersing1999@gmail.com.