stripe-best-practices
Skill1.9k starsChanged 2 months agoMITView on GitHub
Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatic_tax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment Element), migrating from deprecated Stripe APIs, and security best practices (API key management, API key permissions, webhooks, OAuth). Use when planning, building, modifying, testing, or reviewing any Stripe integration, including choosing a development environment, accepting payments, building marketplaces, integrating Stripe, processing payments, setting up subscriptions, collecting sales tax, VAT, or GST, creating connected accounts, or implementing secure key handling.
- Installs packages
14 other projects use a version of this, 9 of them edited.
Trending
Quiet since September.thin dataabout the whole repository
Most recently taken up by
- bex-co/bexedited, first seen Sep 29, 2026
- NiazMorshed2007/jcredited, first seen Sep 20, 2026
- idexal/idexal-skillsedited, first seen Aug 26, 2026
- ElyzeSolutions/skillsedited, first seen Aug 6, 2026
- robinebers/skillsedited, first seen Jun 25, 2026
- georgekhananaev/claude-skills-vaultedited, first seen May 25, 2026
Who's talking about stripe/ai
- amoai-tech/ipixai“IPI-1200 · PR-REVIEW-V2-001 — Catch Risky iPix Code Changes Automatically Before Merge”GitHub · Sep 13, 2026 · 2 reactions
- anthropics/claude-ai-mcp“Claude Desktop sends protocolVersion 2025-11-25 causing third-party MCP servers to hang”GitHub · Mar 2, 2026 · 1 reactions
- dmgrok/agent-plugins“[New Source] stripe”GitHub · Jan 31, 2026 · 1 reactions
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
Used with
Projects with it also use mcp-builder, frontend-design and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillmcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Also in 3 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 4 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 9
- openai/plugins★ 7.3k68% same
- bex-co/bex★ 56985% same
- robinebers/skills★ 4868% same
- georgekhananaev/claude-skills-vault★ 2878% same
- NiazMorshed2007/jcr★ 1999% same
- idexal/idexal-skills★ 1385% same
- Roentek/Claude_Code_Boilerplate_Framework★ 485% same
- ElyzeSolutions/skills★ 189% same
- zaka33333-hash/claude-skills★ 077% same
Wrote their own version · 5
- jorgeasaurus/agent-skills★ 13same name
- FelipeAngeli/skills★ 2same name
- kvivek0591/claude-code-skills★ 2same name
- ghoshsam/claude-code-skills★ 0same name
- JukCattani/skills-claude-juk★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- connect-recommendSkill
- connect-required-verification-informationSkill
- metronomeSkill
- stripe-appsSkill
- stripe-best-practicesSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-paySkill
- stripe-projectsSkill
- upgrade-stripeSkill
- connect-recommendSkill
- connect-required-verification-informationSkill
- metronomeSkill
- stripe-appsSkill
- stripe-best-practicesSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-paySkill
- stripe-projectsSkill
- upgrade-stripeSkill
- connect-recommendSkill
- connect-required-verification-informationSkill
- metronomeSkill
- stripe-appsSkill
- stripe-best-practicesSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-paySkill
- stripe-projectsSkill
- upgrade-stripeSkill
- connect-recommendSkill
- connect-required-verification-informationSkill
- metronomeSkill
- stripe-appsSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-paySkill
- stripe-projectsSkill
- upgrade-stripeSkill
- connect-recommendSkill
- connect-required-verification-informationSkill
- metronomeSkill
- stripe-appsSkill
- stripe-best-practicesSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-paySkill
- stripe-projectsSkill
- upgrade-stripeSkill
- connect-recommendSkill
- connect-required-verification-informationSkill
- metronomeSkill
- stripe-appsSkill
- stripe-best-practicesSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-paySkill
- stripe-projectsSkill
- upgrade-stripeSkill
The file
We split this skill into the rules it gives an agent
5 rules. 2 are common, 0 are distinctive, and 3 are very specific to this project.
2
Common
Most of the 14 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
If stripe sandbox create is used, don’t use MCP.
- Very specific: line 39
If you try to use MCP after running sandbox creation, first make sure stripe sandbox claim is run.
- Common: line 57
Read the relevant reference file before answering any integration question or writing code.
- Very specific: line 65
When a PaymentIntent or SetupIntent integration requires an explicit allowlist, use allowed_payment_method_types instead of …
- Common: line 75
When the user’s request does not clearly fit a single domain above, consult:
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Latest Stripe API version: 2026-09-30.endive. Always use the latest API version and SDK unless the user specifies otherwise.
Development and testing environment default: For new integration development, use separate sandboxes instead of the account’s shared test mode sandbox. Sandboxes isolate settings and test data from live mode. Use separate sandboxes for local development and CI. When stronger isolation is useful, dedicate sandboxes to development teams or testing scenarios. Use the shared test mode sandbox only for an existing integration that depends on it or when a required feature doesn’t support general sandboxes.
Latest SDK versions:
| Language | Latest version |
| Ruby | 19.6.0 |
| Python | 15.6.0 |
| Node.js | 22.6.0 |
| PHP | 21.3.0 |
| Java | 33.4.0 |
| Go | 86.4.0 |
| .NET | 52.4.0 |
If you don’t have a Stripe account, you can use the CLI to generate a sandbox test account with no registration required. Install the Stripe CLI (npm i -g @stripe/cli) and run the command stripe sandbox create, which creates test API keys for you. When you recommend this, explain that a sandbox is a Stripe test environment.
If stripe sandbox create is used, don’t use MCP.
If you try to use MCP after running sandbox creation, first make sure stripe sandbox claim is run. Use stripe whoami --format json for CLI auth checks; do not run stripe config --list.
API key default: Always recommend a restricted API key (RAK) (rk_ prefix) over a secret key (sk_ prefix).
Integration routing
| Building… | Recommended API | Details |
| One-time payments | Checkout Sessions | references/payments.md |
| Custom payment form with embedded UI | Checkout Sessions + Payment Element | references/payments.md |
| Saving a payment method for later | Setup Intents | references/payments.md |
| Connect platform or marketplace | Accounts v2 (/v2/core/accounts) | references/connect.md |
| Usage-based billing (new integration) | Metronome | references/billing.md |
| Subscriptions or recurring billing | Billing APIs + Checkout Sessions | references/billing.md |
| Sales tax, VAT, or GST compliance | Stripe Tax + Registrations API | references/tax.md |
| Embedded financial accounts / banking | v2 Financial Accounts | references/treasury.md |
| Security (key management, RAKs, webhooks, OAuth, 2FA, Connect liability) | See security reference | references/security.md |
Read the relevant reference file before answering any integration question or writing code.
Critical rules
- Before enabling
automatic_tax: { enabled: true }(or calculating tax for a custom PaymentIntent), read the tax reference and confirm the user has an active registration. Without one, Stripe calculates and collects no tax while the user believes tax is on (the most common Stripe Tax mistake). - Never include
payment_method_typesin any Stripe API call, with one exception: Terminal (in-person payments) integrations must passpayment_method_types: ['card_present']on the PaymentIntent. For all other integrations, omit this parameter entirely to enable dynamic payment methods, which enables you to configure payment method settings from the Dashboard and dynamically display the most relevant eligible payment methods to each customer to maximize conversion. To customize which payment methods you accept, use payment_method_configurations orexcluded_payment_method_typesinstead ofpayment_method_types. - When a PaymentIntent or SetupIntent integration requires an explicit allowlist, use
allowed_payment_method_typesinstead ofpayment_method_types. - Never present webhooks as optional. We recommend webhooks for every payment integration and they’re required for subscriptions and asynchronous payment methods. Fulfillment belongs in a handler for both
checkout.session.completedandcheckout.session.async_payment_succeeded(gated onpayment_status), not the success page. See references/payments.md. - On API version
2026-03-25.dahliaor later, pass the parameterintegration_identifiertocheckout.sessions.createto tag sessions with a custom label for tracking and comparing checkout flows in the Dashboard. The label should include a suffix of 8 random letters. - Always instantiate a
StripeClientand call methods on that instance. Do not use the deprecated global/module-level API key pattern (stripe.api_key = …,Stripe.setApiKey,stripe.Key = …,StripeConfiguration.ApiKey = …). The global pattern is deprecated in all current SDKs.
Key documentation
When the user’s request does not clearly fit a single domain above, consult:
- Integration Options — Start here when designing any integration.
- API Tour — Overview of Stripe’s API surface.
- Go Live Checklist — Review before launching.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

