Рет қаралды 30,681
🧑💻 ALL the code: github.com/marclou/stripe-sub
Stripe subscriptions are a pain (API, webhook, lifecycle...).
But there's an easy way. And it requires a few dozen lines of code!
We'll build a monthly/yearly pricing table for a SaaS, and let customers subscribe and handle their subscriptions. The tech stack:
- React
- Tailwind
- NextJS (API endpoint for the webhook)
- Stripe Payment Link
- Stripe Customer Portal
🔗 All my startups - www.marclou.com
⚡️ Ship your startup in days, not weeks - shipfa.st/
💡 Newsletter for solopreneurs (20K readers) - marclou.beehiiv.com/
📸 Instagram - / marclouvion
💼 LinkedIn - / marclouvion
🐦 Twitter - / marc_louvion
00:00 - Intro
00:55 - Subscription 101
01:35 - Accepting payments
05:34 - Grant/revoke access
13:33 - Manage subscriptions
15:10 - Production setup
15:39 - Pre-signup checkout
16:01 - Thoughts on subscriptions...