integrating-stripe-payments
SolidComplete workflow for integrating Stripe payments (subscriptions or one-time) with Convex + Next.js. Includes hosted checkout, webhooks, UI components, and testing. Use when adding payment functionality to a Convex + Next.js app.
Web & Frontend 346 stars
64 forks Updated today MIT
Install
Quality Score: 96/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Integrating Stripe Payments
## Core Workflow
When user requests Stripe payment integration for Convex + Next.js:
### 1. Requirements Gathering
Ask these questions first:
- **Payment type**: Subscription or one-time payment?
- **Backend**: Confirm this is Convex (required for this skill)
- **Checkout preference**: Hosted Stripe Checkout (recommended) or embedded?
- **Pricing**: Amount, currency, billing interval for subscriptions?
- **Product**: What does user get after payment?
### 2. API Keys & Environment Setup
**CRITICAL**: Gather these FIRST before proceeding - MCP tools require credentials.
1. **Get Stripe API keys from user**:
- Ask for Stripe Secret Key (starts with `sk_test_` or `sk_live_`)
- Add to `.env.local`: `STRIPE_SECRET_KEY=sk_test_...`
2. **Install dependencies**: `npm install stripe`
3. **Set initial environment variables**:
- `STRIPE_SECRET_KEY` (from step 1)
- `NEXT_PUBLIC_SITE_URL=http://localhost:3000` (default local development)
4. **Use Stripe MCP tool** to create product/price and get price ID
5. **Use Convex MCP tool** to set remaining environment variables
6. **Manual fallback**: Follow `resources/environment-setup.md`
Complete required env vars:
- `STRIPE_SECRET_KEY` ✓ (set in step 1)
- `STRIPE_PRICE_ID` (from Stripe MCP tool)
- `STRIPE_WEBHOOK_SECRET` (set during webhook configuration)
- `NEXT_PUBLIC_SITE_URL` ✓ (set in step 1)
### 3. Database Schema
Update `convex/schema.ts` with Stripe fields. See `resources/database-sche...
Details
- Author
- majiayu000
- Repository
- majiayu000/claude-skill-registry
- Created
- 5 months ago
- Last Updated
- today
- Language
- HTML
- License
- MIT
Integrates with
Related Skills
Web & Frontend Featured
antigravity-design-expert
Core UI/UX engineering skill for building highly interactive, spatial, weightless, and glassmorphism-based web interfaces using GSAP and 3D CSS.
38,979 Updated today
sickn33 Web & Frontend Featured
frontend-design
You are a frontend designer-engineer, not a layout generator.
38,979 Updated today
sickn33 Web & Frontend Featured
ui-component
Generate a new UI component that follows StyleSeed Toss conventions for structure, tokens, accessibility, and component ergonomics.
38,979 Updated today
sickn33