Рет қаралды 9,134
In this video, I will be talking about how to integrate Stripe Subscriptions using the Webhook API in your NextJS 13 application.
Demo: stripe-demo.livecode247.com
Final Code: github.com/kavinvalli/stripe-...
Starter Code: github.com/kavinvalli/stripe-...
00:00 - Intro
00:20 - Demo
03:08 - Setup from starter and explain
09:14 - Setup subscriptions data
11:33 - Setup Stripe API
13:14 - Setup Billing Page (UI)
18:57 - Prisma Schema for Stripe Data
22:05 - Workflow explanation
23:11 - Get user's subscription plan
29:23 - Subscription Button
33:50 - Server action for Stripe subscription
38:58 - Call server action
46:51 - Debugging stripe api key not found
48:59 - Found error
51:13 - Setup webhook
01:06:41 - Add subscription detail card
---
Website: kavin.me
Blog: livecode247.com
Github: github.com/kavinvalli