stripe-best-practices

Guides Stripe integration decisions across payments, Connect, billing, tax, and security.

1|Updated May 26, 2026
One-click install
npx skills add https://github.com/nimdvir/dima-publishing --skill stripe-best-practices-nimdvir
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stripe-best-practices
Source: https://github.com/nimdvir/dima-publishing/tree/main/.continue/skills/stripe-best-practices
Command: npx skills add https://github.com/nimdvir/dima-publishing --skill stripe-best-practices-nimdvir

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing the right Stripe APIs and avoiding deprecated patterns is difficult because Stripe's surface spans payments, subscriptions, Connect platforms, tax, and Treasury. This Skill routes each integration question to the correct modern API and flags common traps before they reach production. ## Core Features & Use Cases - Integration Routing: Maps your goal (one-time payments, subscriptions, marketplaces, tax, embedded banking) to the recommended API such as Checkout Sessions, Accounts v2, or v2 Financial Accounts. - Deprecated API Guardrails: Steers you away from the Charges API, Sources API, Card Element, and legacy Connect account types, with migration paths to modern equivalents. - Security Best Practices: Covers restricted API keys, webhook signature verification, OAuth CSRF protection, and incident response for compromised keys. - Use Case: When building a SaaS checkout flow, ask which API to use and receive a recommendation for Checkout Sessions with dynamic payment methods, plus correct subscription and tax configuration. ## Quick Start Ask the assistant to design a Stripe integration for accepting subscription payments on your website and review the recommended approach.

Frequently Asked Questions about stripe-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Should I use Checkout Sessions or PaymentIntents for Stripe payments?▼

Use Checkout Sessions for on-session payments since it handles taxes, discounts, and shipping automatically. Use PaymentIntents for off-session payments or when you need to model checkout state independently and just create a charge.

How do I set up Stripe Connect for a marketplace platform?▼

Use the Accounts v2 API (POST /v2/core/accounts) and configure accounts with controller properties for liability, fees, dashboard access, and requirement collection. Avoid legacy account types like Express or Custom for new platforms.

Why should I avoid payment_method_types in Stripe API calls?▼

Omitting payment_method_types enables dynamic payment methods, where Stripe automatically shows the most relevant methods per customer to maximize conversion. The only exception is Terminal integrations, which require card_present.

What is the difference between restricted API keys and secret keys in Stripe?▼

Restricted API keys (rk_ prefix) carry only the permissions you assign, limiting damage if compromised, while secret keys (sk_ prefix) grant full account access. Best practice is to use a separate least-privilege restricted key per service.

How do I migrate from the Stripe Charges API?▼

Migrate to Checkout Sessions or PaymentIntents, which are the supported paths for new integrations. The Charges API should never be used, and the Sources API should be replaced with Setup Intents for saving cards.

Does Stripe Tax support all countries and tax types?▼

Stripe Tax supports many regions for sales tax, VAT, and GST, but not all jurisdictions or tax types like customs duties. Check the supported countries list; unsupported regions require manual tax_rates on subscriptions or invoices.