stripe-best-practices

Guide Stripe API integration with modern Checkout Sessions and Payment Elements.

1.7k|323|Updated Nov 11, 2024
One-click install
npx skills add https://github.com/stripe/ai --skill stripe-best-practices-stripe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-best-practices
Source: https://github.com/stripe/ai/tree/main/providers/cursor/plugin/skills/stripe-best-practices
Command: npx skills add https://github.com/stripe/ai --skill stripe-best-practices-stripe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides essential guidance and best practices for building robust and secure integrations with Stripe's payment processing services, ensuring developers follow recommended patterns and avoid deprecated or insecure methods.

Core Features & Use Cases

  • API Versioning: Defaults to the latest Stripe API version for modern features and security.
  • Recommended APIs: Prioritizes modern APIs like Checkout Sessions, PaymentIntents, and Billing APIs over legacy ones.
  • Integration Surfaces: Guides users towards Stripe Checkout, Payment Element, and other modern frontend solutions.
  • Use Case: A developer is unsure whether to use the Charges API or Payment Intents for a new subscription service. This Skill advises them to use the Billing APIs and Stripe Checkout for a modern, scalable solution.

Quick Start

Provide guidance on the best Stripe API to use for recurring subscription payments.

Frequently Asked Questions about stripe-best-practices

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

FAQPage Schema
What is the best way to integrate Stripe payments for a new subscription service?

Stripe API best practices recommend using PaymentIntents and Checkout Sessions for secure payment processing. These modern integration surfaces handle complex payment flows securely, replacing deprecated legacy APIs like the Charges API.

How do I migrate from deprecated Stripe APIs to modern integration surfaces?

Migrate from deprecated Stripe APIs by adopting modern integration surfaces like Checkout Sessions and Payment Element. Following Stripe's latest guidelines ensures secure, robust payment processing, subscription management, and Connect operations.

Should I use the Stripe Charges API or PaymentIntents for processing payments?

Use PaymentIntents rather than the deprecated Charges API for processing payments. Stripe best practices prioritize PaymentIntents and Billing APIs to ensure secure, scalable integration and adherence to latest API guidelines.

Does this guidance support Stripe Connect and recurring billing integrations?

Yes, this guidance supports Stripe Connect and recurring billing integrations. It ensures adherence to Stripe's latest guidelines for secure payment processing, subscriptions, and Connect operations by defaulting to the latest API version.

What Stripe API version should I use for modern security features?

Default to the latest Stripe API version for modern security features. Following best practices means using the newest version to ensure your payment processing integration remains secure and utilizes current functionalities.