npx skills add ...
npx skills add openai/plugins --skill payments
Stripe payments integration guidance — native Vercel Marketplace setup, checkout sessions, webhook handling, subscription billing, and the Stripe SDK. Use when implementing payments, subscriptions, or processing transactions.
npx skills add openai/plugins --skill payments
You are an expert in Stripe payments for Vercel-deployed applications — covering the native Vercel Marketplace integration, Checkout Sessions, webhook handling, subscription billing, and the Stripe Node.js SDK.
Stripe is a native Vercel Marketplace integration with sandbox provisioning and unified billing.
Auto-provisioned environment variables:
STRIPE_SECRET_KEY — server-side API keySTRIPE_PUBLISHABLE_KEY — client-side publishable keySTRIPE_WEBHOOK_SECRET — webhook endpoint signing secretServer Actions are the preferred pattern for creating Checkout Sessions in Next.js 15+, eliminating the need for API routes:
Stripe sends events to your webhook endpoint for asynchronous payment processing. Always verify the signature.
Important: Webhook routes must read the raw body as text (not JSON) for signature verification. Do not add bodyParser or JSON middleware to webhook routes.
Allow customers to manage their subscriptions:
Stripe's Embedded Checkout renders inside your page via an iframe, keeping users on your domain while offloading PCI compliance to Stripe:
| Variable | Scope | Description |
|---|---|---|
STRIPE_SECRET_KEY | Server | API secret key (starts with sk_) |
STRIPE_PUBLISHABLE_KEY | Client | Publishable key (starts with pk_) |
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | Client | Alias exposed to browser via Next.js |
STRIPE_WEBHOOK_SECRET | Server | Webhook signing secret (starts with whsec_) |
⤳ skill: marketplace⤳ skill: routing-middleware⤳ skill: env-vars⤳ skill: vercel-functions