Stripe Payments With Nextjs 14 - Full Guide

  Рет қаралды 9,327

Jeremy

Jeremy

Күн бұрын

Hello and welcome to a tutorial on how to start accepting payments in your Nextjs 14 application. This shows how to accept payments with the app router, Nextjs 14, and Stripe payment links. It will take you through everything that you need to do. This includes:
- creating payment links
- creating a webhook
- handling webhook payment events
- putting payment links in our code
- how to handle updating subscriptions
If you found this tutorial useful, or thought something was missing, please let me know in the comments down below. If you have something useful to share, state it down below as well.
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.
If you want to support me, check out my websites
- jeremypersing.com
- equitieslist.com
- GitHub: github.com/JeremyPersing
- LinkedIn: / jeremy-persing
Timestamps:
0:00 - 0:16 Intro
0:17 - 4:18 Creating and Implementing a Payment Link
4:19 - 12:12 Creating a Webhook and Handling Events
12:13 - 13:02 Testing the Webhook Locally
13:03 - 17:25 Testing the Webhook on Our Server
17:26 - 19:10 Creating the Live Webhook
19:11 - 20:41 Adding the Billing Portal to Your App
20:42 - 21:37 Outro

Пікірлер: 27
@bricecalice2079
@bricecalice2079 2 ай бұрын
Thank you, I enjoyed the video.
@anton9410
@anton9410 3 ай бұрын
great video, helped me out!
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
Thank you, I’m glad it was helpful!
@uixmat
@uixmat 3 ай бұрын
Great video 🔥
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
Thank you!
@amerrashed6287
@amerrashed6287 29 күн бұрын
Vey helpful.. thanks🙏🏼
@jeremypersing4484
@jeremypersing4484 28 күн бұрын
Glad it was helpful!
@andrew_mandrichuk
@andrew_mandrichuk 2 ай бұрын
Hey man, where i can copy the code? Could you post it in your github repository, please?
@jeremypersing4484
@jeremypersing4484 4 ай бұрын
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 2 ай бұрын
This received 2 emails after 2.5k views, so I deemed it not worth pursuing.
@AlessiaCaraFans
@AlessiaCaraFans 3 ай бұрын
can we integarate payement by card and paypal pls in one form using stripe
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
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
@sreerag4368
@sreerag4368 2 ай бұрын
Hey so if I want to accept real payement in my SAAS,should I register my company or something ?
@jeremypersing4484
@jeremypersing4484 2 ай бұрын
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.
@myhendry
@myhendry 3 ай бұрын
Good video however Is it for one time purchase or for subscription?
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
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.
@TexasT1996
@TexasT1996 2 ай бұрын
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 2 ай бұрын
Yeah I could help with something like that. You can reach me by email at jpersing1999@gmail.com.
@Diegoalllll
@Diegoalllll 3 ай бұрын
What about the refund api?
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
I usually just handle these manually.
@Diegoalllll
@Diegoalllll 3 ай бұрын
@@jeremypersing4484 Okay, thanks for that!
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
You’re welcome
@janpapaj4373
@janpapaj4373 3 ай бұрын
@@jeremypersing4484 do you manually update the db after refunding? (removing access)?
@jeremypersing4484
@jeremypersing4484 3 ай бұрын
Yes I would, so long as you don’t want the no longer paying customer to have access.
Stripe Webhooks - The Ultimate Guide
29:04
Brett Westwood - Software Engineer
Рет қаралды 4,3 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 560 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 119 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 26 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
The EASY way to set recurring payments (Stripe subscriptions)
16:57
Stripe Payments w/ Nextjs
12:15
Jeremy
Рет қаралды 12 М.
How To Accept Payments With Stripe
23:05
Web Dev Simplified
Рет қаралды 270 М.
Unlimited AI Agents running locally with Ollama & AnythingLLM
15:21
Tim Carambat
Рет қаралды 108 М.
Authentication & Subscriptions in NextJs 14
56:30
Hamed Bahram
Рет қаралды 4 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 35 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 52 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 119 МЛН