stripe-best-practices

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

13|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/vedang/dotagents --skill stripe-best-practices-vedang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-best-practices
Source: https://github.com/vedang/dotagents/tree/main/specific_skills/stripe-best-practices
Command: npx skills add https://github.com/vedang/dotagents --skill stripe-best-practices-vedang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Choosing the wrong Stripe API or using deprecated patterns leads to rework, security risks, and lost conversion. This Skill routes every Stripe integration question to the correct current API and enforces critical rules like omitting payment_method_types and using restricted API keys. ## Core Features & Use Cases - Integration Routing: Maps your use case (one-time payments, subscriptions, marketplaces, tax, treasury) to the correct Stripe API via a decision table and detailed reference guides. - Connect Platform Guidance: Enforces Accounts v2 patterns, correct capability checks, dashboard defaults, and charge pattern selection for SaaS and marketplace models. - Security Best Practices: Covers restricted API keys, webhook signature verification, OAuth CSRF protection, and incident response for compromised keys. - Use Case: You are building a marketplace that pays out sellers. The Skill directs you to Accounts v2 with express dashboard, destination charges, and application_fee_amount, while warning against deprecated v1 account types. ## Quick Start Ask the agent to help you integrate Stripe subscriptions with a 14-day trial and automatic tax collection for your SaaS product.

Frequently Asked Questions about stripe-best-practices

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

FAQPage Schema
How do I choose between Checkout Sessions and PaymentIntents?

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.

Should I pass payment_method_types when creating a PaymentIntent?

No, omit payment_method_types entirely to enable dynamic payment methods, which lets Stripe show the most relevant methods per customer. The only exception is Terminal in-person payments, which require card_present.

How do I set up Stripe Connect for a marketplace?

Use the Accounts v2 API with configuration.recipient requesting stripe_transfers, dashboard set to express, and destination charges with application_fee_amount. Never use deprecated v1 account types like express or custom in account creation.

What is the difference between secret keys and restricted API keys?

Restricted API keys (rk_ prefix) have only the permissions you assign, so a compromised key does far less damage than a secret key (sk_ prefix). Follow least privilege by creating a separate restricted key per service or use case.

When should I use Metronome instead of Stripe Billing Meters?

Use Metronome for any new usage-based billing integration, including prepaid credits, enterprise contracts, and high-volume event ingestion. Stay on Billing Meters only if you already use it for simple pay-as-you-go needs.

Why does enabling automatic_tax fail on my existing subscription?

automatic_tax and explicit tax_rates are mutually exclusive, so you must clear default_tax_rates and item-level tax_rates first. Use the API rather than the Dashboard to schedule the change at the next billing cycle and avoid prorations.