stripe-best-practices
Installation
SKILL.md
Latest Stripe API version: 2026-02-25.clover. Always use the latest API version and SDK unless the user specifies otherwise.
Integration Routing
| Building... | Recommended API | Details |
|---|---|---|
| One-time payments | Checkout Sessions | Low-code, hosted page |
| Custom payment form | Checkout Sessions + Payment Element | Embedded UI |
| Saving a payment method | Setup Intents | For future charges |
| Marketplace/platform | Accounts v2 (/v2/core/accounts) |
Connect |
| Subscriptions | Billing APIs + Checkout Sessions | Recurring |
| Financial accounts | v2 Financial Accounts | Treasury/banking |
Key Patterns
Checkout Session (Most Common)
import Stripe from 'stripe';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);