stripe-best-practices

Guide Stripe integration choices for Checkout Sessions, PaymentIntents, and webhooks.

Updated May 29, 2026
One-click install
npx skills add https://github.com/sjmontano/SafeRoutes-Popayan --skill stripe-best-practices-sjmontano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-best-practices
Source: https://github.com/sjmontano/SafeRoutes-Popayan/tree/main/.agents/skills/stripe-best-practices
Command: npx skills add https://github.com/sjmontano/SafeRoutes-Popayan --skill stripe-best-practices-sjmontano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guides developers in making Stripe integration decisions, covering API selection, Connect platform setup, billing, treasury, and security best practices.

Core Features & Use Cases

  • API selection guidance (Checkout Sessions vs PaymentIntents)
  • Connect platform setup with Accounts v2 and controller properties
  • Billing and subscriptions guidance
  • Treasury/Financial Accounts integration guidance
  • Migration strategies from deprecated Stripe APIs
  • Security best practices (API key management, restricted keys, webhooks, OAuth)
  • Use cases across payments, marketplaces, and secure key handling

Quick Start

Describe the optimal Stripe integration approach for a new project, including API selection and security considerations.

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 Stripe Checkout Sessions and PaymentIntents for my integration?

Stripe Checkout Sessions provide a pre-built, hosted payment flow for rapid setup, while PaymentIntents offer granular control for custom payment workflows. Choose Checkout for standard payments and PaymentIntents for complex, customized checkout experiences.

What are the security best practices for Stripe API key management?

Stripe API key management requires using restricted keys instead of secret keys, scoping permissions to specific resources, and storing keys in secure environment variables. Safe onboarding configurations and proper key rotation are also critical for maintaining a secure Stripe integration posture.

How do I set up a Stripe Connect marketplace using Accounts v2?

Setting up a Stripe Connect marketplace with Accounts v2 involves configuring controller properties to manage funds flow, payouts, and onboarding configurations. This approach provides granular control over connected accounts, ensuring secure and compliant treasury workflows for marketplace platforms.

How do I validate Stripe webhooks securely?

Validating Stripe webhooks securely requires verifying webhook signatures using your endpoint's secret key and the timestamp in the header. Always construct the signed payload string and compare the signature hash to prevent unauthorized requests and ensure reliable event processing.

When should I migrate from deprecated Stripe APIs to newer integration approaches?

Migrating from deprecated Stripe APIs is necessary when building new payments, marketplaces, or treasury workflows. Transitioning to Accounts v2, current PaymentIntents, and updated Checkout Sessions ensures continued support, better security posture, and access to the latest integration features.

Does this guidance cover Stripe billing and subscriptions setup?

Yes, this guidance covers Stripe billing and subscriptions setup, providing best practices for integrating recurring payment workflows. It specifies requirements for secure key handling and API versioning when implementing subscription-based billing models.