Setup Stripe Subscriptions using Nextjs 14 (Tutorial + Code)

preview_player
Показать описание
In this video, I share with you how I handle subscriptions using Nextjs 14 and Stripe payments. Make sure to like, comment and subscribe!

Рекомендации по теме
Комментарии
Автор

3:56 imagine deploying this to production😂😂😂

everbliss
Автор

Really cool project. I just installe it but having an error I an unable to fix...
IntegrationError: Missing value for Stripe(): apiKey should be a string.
Any idea 🤦

clement_hurstel
Автор

how does it handle upgrades and downgrades? does it prorate the subscription or what?

sanjaydotpro
Автор

Thank you very much for the video! What are the advantages of using the stripe checkout instead of creating and redirecting directly to the Stripe payment link? Couldn't it be done directly by clicking the button window.location.href = {paymentLink} ? Thank you!

pedrojesusmarchaldelatorre
Автор

Why'd you choose Clerk instead of Supabase auth?

lukemelnik
Автор

what do you use to make you mouse like that

smotch
Автор

hey bro, quick question.. what's the menu bar on the side where you have your links?

argenistherose
Автор

I was looking for this video and you uploaded

shivamkumar-qpjm
Автор

Hello nice started kit! Why do you have `NEXT_PUBLIC_STRIPE_PRICE_ID` in your cards prices? Did you create products in Stripes UI or is just for changing prices from the .env file?

omarkraidie
Автор

Able to see the dashboard without subscription using the /dashboard

shivamkumar-qpjm
Автор

Bro what do you use to record your videos?

BashirHilaly
Автор

Thank you. You are very nice. I have a question for you: where do you set the return_url? The return_url tells stripe where to return to your code after the customer pays you.

John-wxzn
Автор

Hello in the webhooks api the switch is only hitting the checkout.session.completed so the other function handleSubscriptionEvent is not getting executed so the invoice and subsctiptions table are not getting created
please reply

pratikpradhan
Автор

How do you handle a situation when the events come at a different order? For example, you receive the checkout session before the invoice comes. Or you first receive with status "active" and after that you get with status "incomplete"?

According to the stripe doc, the events can come at a VERY random order, with big delays.

neckyyy
Автор

Thanks mate! This is great helped me out a lot

anmola.
Автор

that's an awesome tutorial! Thanks a lot!

oleksandroliynyk
Автор

using this method is it easy to implement 'checks' i.e. conditions that affect the rest of the app depending on user's subscription level, or some type of a timed trial

WillMcCartneyAI
Автор

Great video. I like the idea of adding credits. Are you planning on adding roles as well?

segalt
Автор

Very nice template! I do have a question. I have added the prisma schema in Supabase and created a webhook in Clerk, but somehow when I sign-in, the new user is not added to the db. I do see that the user is signed-in in Clerk. Can you give me a quick guide on the correct implementation? The .env is completely filled in.

elwyndeneve
Автор

awesome! how do you manage plan changes? in case you need to keep one plan per user

versaleyoutubevanced