Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
stripe avatar

Stripe Best Practices

  • 66k installs
  • 1.7k repo stars
  • Updated July 31, 2026
  • stripe/ai

stripe-best-practices is Stripe's official agent skill for payment integration architecture across Checkout, Connect, billing, webhooks, and modern SDK patterns.

About

stripe-best-practices is Stripe's official agent skill from the stripe/ai repository for shipping payment integrations that follow current Stripe architecture guidance. It routes developers through Checkout versus Payment Element decisions, Connect marketplace patterns, billing and subscriptions, tax and invoicing, and webhook reliability instead of legacy Sources or Charges APIs. The skill emphasizes idempotent requests, explicit error handling, test-mode fixtures, and production hardening checklists drawn from Stripe's own integration docs. Agents use it when scaffolding payment flows, reviewing an existing integration for drift, or answering which Stripe object model fits a SaaS, marketplace, or usage-based product. It complements sibling skills for Stripe projects, directory navigation, and agent toolkit usage while keeping recommendations aligned with Stripe's supported SDK paths across server and client. Teams reach for it to avoid deprecated patterns and to produce integrations that survive Stripe API evolution and compliance review.

  • Official Stripe guidance for Checkout, Payment Element, Connect, billing, and webhooks
  • Steers agents away from deprecated Sources and legacy Charges-only flows
  • Covers idempotency keys, error handling, test fixtures, and production hardening
  • Maps SaaS, marketplace, and usage-based products to the right Stripe object model
  • Aligns recommendations with current stripe/ai repo skills and supported SDK paths

Stripe Best Practices by the numbers

  • 65,962 all-time installs (skills.sh)
  • +3,136 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #11 of 4,348 Backend & APIs skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/stripe/ai --skill stripe-best-practices

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs66k
repo stars1.7k
Security audit2 / 3 scanners passed
Last updatedJuly 31, 2026
Repositorystripe/ai

Which Stripe APIs and integration pattern should I use for Checkout, Connect marketplaces, subscriptions, or webhooks without deprecated shortcuts?

Get authoritative guidance on every Stripe decision from API choice and Connect setup to security, billing, and migration paths.

Who is it for?

Developers integrating Stripe payments, billing, or Connect marketplaces who want official, up-to-date architecture guidance.

Skip if: Skip for non-Stripe processors or tasks unrelated to payments, billing, or Stripe platform objects.

When should I use this skill?

Payment flows, Checkout, Connect, subscriptions, invoices, webhooks, or Stripe SDK integration design.

What you get

Architecture-aligned Stripe integration guidance with current APIs, idempotent flows, and production-ready error handling.

  • Stripe API architecture recommendation
  • Connect and webhook configuration plan
  • Security and key management checklist

Files

SKILL.mdMarkdownGitHub ↗

Latest Stripe API version: 2026-04-22.dahlia. Always use the latest API version and SDK unless the user specifies otherwise.

API key default: Always recommend a restricted API key (RAK) (rk_ prefix) over a secret key (sk_ prefix).

Integration routing

Building…Recommended APIDetails
One-time paymentsCheckout Sessions<references/payments.md>
Custom payment form with embedded UICheckout Sessions + Payment Element<references/payments.md>
Saving a payment method for laterSetup Intents<references/payments.md>
Connect platform or marketplaceAccounts v2 (/v2/core/accounts)<references/connect.md>
Subscriptions or recurring billingBilling APIs + Checkout Sessions<references/billing.md>
Sales tax, VAT, or GST complianceStripe Tax + Registrations API<references/tax.md>
Embedded financial accounts / bankingv2 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

  • Never include `payment_method_types` in any Stripe API call, with one exception: Terminal (in-person payments) integrations must pass payment_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` or excluded_payment_method_types instead of payment_method_types.

Key documentation

When the user’s request does not clearly fit a single domain above, consult:

Related skills

Forks & variants (1)

Stripe Best Practices has 1 known copy in the catalog totaling 34 installs. They canonicalize to this original listing.

How it compares

Use stripe-best-practices for Stripe-specific integration and security decisions during implementation and code review.

FAQ

Who is stripe-best-practices for?

Developers building on Stripe who need official integration architecture guidance.

When should I use stripe-best-practices?

When designing or reviewing Checkout, Connect, billing, webhook, or SDK payment flows.

Is stripe-best-practices safe to install?

Review the Security Audits panel on this page before installing in production.

Backend & APIspaymentsfinance

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.