This is the Stripe integration you wish you had before you got paged at 3am about duplicate charges. It covers the complete payment stack: checkout sessions, subscriptions, webhooks, metered billing, and Stripe Connect. The sharp edges table alone is worth it, calling out critical mistakes like skipping webhook signature verification or letting JSON middleware consume the request body before you can verify it. Built by someone who's clearly debugged webhook race conditions and dunning logic in production. Requires supabase-backend, which makes sense since you need somewhere reliable to store subscription state. If you're building anything beyond a trivial payment flow, this handles the paranoia you should have about idempotency, state drift, and webhook ordering.

skills.sh installs
392
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill stripe-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

Stripe Integration

Guidance for building payment code that does not lose orders, double-charge or leak keys. It follows Stripe's own recommendations as of October 2026. When a detail matters (a parameter, an event name, an API version), check docs.stripe.com or the Stripe MCP server's search_stripe_documentation tool before relying on memory.

Versions

  • Latest API version: 2026-09-30.endive. Pin it explicitly on the client so an account default change never alters response shapes under you.
  • Latest server SDKs: Node.js 23, Python 16, Ruby 20, PHP 22, Java 34, Go 87, .NET 53. Create a client instance; the global key pattern (stripe.api_key = …, Stripe.setApiKey) is deprecated in every SDK.
  • To move an existing integration to a newer version, read Upgrading your API version first.
// lib/stripe.ts
import Stripe from 'stripe';

export const stripe = new Stripe(process.env.STRIPE_API_KEY!, {
  apiVersion: '2026-09-30.endive',
});

Choose the API

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Documentation, Sales & Marketing, Finance & Trading
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1mongodb avataratlas-stream-processingmongodb/agent-skillsManages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations, debugging392skills.sh installs
2sarvamai avatarspeech-to-textsarvamai/skillsWrite correct Sarvam Saaras STT code for 23 Indic languages — REST modes, Batch API with diarization, and WebSocket streaming gotchas. Use this skill when build389skills.sh installs
3senpi-ai avatarsenpi-entrypointsenpi-ai/senpi-skillsOnboard AI agents into the Senpi trading platform on Hyperliquid. Walks through account creation, API key setup, MCP server configuration, skill discovery, and 389skills.sh installs
4auth0 avatarauth0-java-mvc-commonauth0/agent-skillsUse when adding Auth0 login, logout, or callback handling to a Java Servlet web application. Integrates com.auth0:mvc-auth-commons for server-side Java apps — u388skills.sh installs
5gohypergiant avataraccelint-nextjs-best-practicesgohypergiant/agent-skillsNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions,386skills.sh installs
6syncfusion avatarsyncfusion-blazor-treegridsyncfusion/blazor-ui-components-skillsImplements the Syncfusion Blazor TreeGrid (SfTreeGrid) for hierarchical or self‑referential data with expandable nodes and nested row structures. Use this skill382skills.sh installs