jezweb/claude-skills/stripe-payments
Claude Code and agent skill by jezweb/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Add Stripe payments to a web app — Checkout Sessions, Payment Intents, subscriptions, webhooks, customer portal, and pricing pages. Covers the decision of which Stripe API to use, produces working integration code, and handles webhook verification. No MCP server needed — uses Stripe npm package directly. Triggers: 'add payments', 'stripe', 'checkout', 'subscription', 'payment form', 'pricing page', 'billing', 'accept payments', 'stripe webhook', 'customer portal'.
Install
npx vskill@latest install jezweb/claude-skills/stripe-paymentsSKILL.md
The same SKILL.md was published earlier as jezweb/claude-skills/stripe-payments.
Stripe Payments
Add Stripe payments to a web app. Covers the common patterns — one-time payments, subscriptions, webhooks, customer portal — with working code. No MCP server needed.
Which Stripe API Do I Need?
| You want to... | Use | Complexity | |
|---|---|---|---|
| Accept a one-time payment | Checkout Sessions | Low — Stripe hosts the payment page | |
| Embed a payment form in your UI | Payment Element + Payment Intents | Medium — you build the form, Stripe handles the card | |
| Recurring billing / subscriptions | Checkout Sessions (subscription mode) | Low-Medium | |
| Save a card for later | Setup Intents | Low | |
| Marketplace / platform payments | Stripe Connect | High | |
| Let customers manage billing | Customer Portal | Low — Stripe hosts it |
Default recommendation: Start with Checkout Sessions. It's the fastest path to accepting money. You can always add embedded forms later.
Setup
Install
API Keys
Server-Side Client
One-Time Payment (Checkout Sessions)
The fastest way to accept payment. Stripe hosts the entire checkout page.
Create a Checkout Session (Server)
Redirect to Checkout (Client)
Create Products and Prices
Hardcode price IDs in your code (they don't change):
Subscriptions
Same as one-time but with mode: 'subscription':
Check Subscription Status
Webhooks
Stripe sends events to your server when things happen (payment succeeded, subscription cancelled, etc.). You must verify the webhook signature.
Webhook Handler (Cloudflare Workers / Hono)
Register Webhook
Cloudflare Workers Gotcha
constructEvent (synchronous) uses Node.js crypto which doesn't exist in Workers. Use constructEventAsync instead — it uses the Web Crypto API.
Customer Portal
Let customers manage their own subscriptions (upgrade, downgrade, cancel, update payment method):
Configure the portal in Dashboard: https://dashboard.stripe.com/settings/billing/portal
Pricing Page Pattern
Generate a pricing page that reads from Stripe products:
Or hardcode if you only have 2-3 plans — simpler and no API call on every page load.
Stripe CLI (Local Development)
Common Patterns
Link Stripe Customer to Your User
Free Trial
Australian Dollars
Gotchas
| Gotcha | Fix | |
|---|---|---|
constructEvent fails on Workers | Use constructEventAsync (Web Crypto API) | |
| Webhook fires but handler not called | Check the endpoint URL matches exactly (trailing slash matters) | |
| Test mode payments not appearing | Make sure you're using sk_test_ key, not sk_live_ | |
| Price amounts are in cents | 2900 = $29.00. Always divide by 100 for display | |
| Customer email doesn't match user | Use customer (existing ID) not customer_email for returning users | |
| Subscription status stale | Don't cache — check via API or trust webhook events | |
| Webhook retries | Stripe retries failed webhooks for up to 3 days. Return 200 quickly. | |
| CORS on checkout redirect | Checkout URL is on stripe.com — use window.location.href, not fetch |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/integrations/skills/stripe-payments/SKILL.md
Popularity
- Repository stars
- 869
- Repository forks
- 90
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jezweb/claude-skills/stripe-payments)