December 2025 Summaries
1 posts from Convex
Filter
Month:
Year:
Post Summaries
Back to Blog
A Convex tutorial demonstrates how to add Stripe payments to a newly scaffolded Next.js application using the official Convex Stripe component, with WorkOS AuthKit providing authentication. The process includes installing the component, registering it in the Convex configuration, adding Stripe secret and webhook-signing keys as Convex environment variables, creating a Stripe webhook destination that points to the Convex HTTP Actions URL, and registering the webhook route so Stripe events are verified and synchronized into Convex-managed data tables. It then defines backend actions for subscription and one-time-payment checkout sessions, creates or retrieves Stripe customers tied to authenticated users, and uses a Stripe product price ID to determine the item sold at checkout. A protected dashboard queries the user’s synchronized subscriptions and conditionally shows either subscription-required pricing or paid content, updating reactively after successful payment. The component also supports Stripe’s customer billing portal for subscription cancellation and management, while offering additional capabilities such as payment records, invoices, subscription changes, seat-based billing, and organization-linked payments through reusable TypeScript APIs and example applications.
Dec 03, 2025
5,780 words in the original blog post.