stripe-integration
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
By wshobson · 12,194 installs
npx skills add wshobson/agents --skill stripe-integration
Source repository · Upstream listing
Stripe Integration
Master Stripe payment processing integration for robust, PCI compliant payment flows including checkout, subscriptions, webhooks, and refunds.
When to Use This Skill
Implementing payment processing in web/mobile applications
Setting up subscription billing systems
Handling one time payments and recurring charges
Processing refunds and disputes
Managing customer payment methods
Implementing SCA (Strong Customer Authentication) for European payments
Building marketplace payment flows with Stripe Connect
Core Concepts
1. Payment Flows
Checkout Sessions
Recommended for most integrations
Supports all UI paths:
Stripe hosted checkout page
Embedded checkout form
Custom UI with Elements (Payment Element, Express Checkout Element) using ui mode='custom'
Provides built in checkout capabilities (line items, discounts, tax, shipping, address collection, saved payment methods, and checkout lifecycle events)
Lower integration and maintenance burden than Payment Intents
Payment Intents (Bespoke control)
You calculate the final amount with taxes, discounts, subscriptions, and currency conversion yourself.
More complex implementation and long term maintenance burden
Requires Stripe.js for PCI compliance
Setup Intents (Save Payment Methods)
Collect payment method without charging
Used for subscriptions and future payments
Requires customer confirmation
2. Webhooks
Critical Events:
payment intent.succeeded : Payment completed
payment intent.payment failed : Payment failed
customer.subscription.updated : Subscription changed
customer.subscription.deleted : Subscription canceled
charge.refunded : Refund processed
invoice.payment succeeded : Subscription payment successful
3. Subscriptions
Components:
Product : What you're selling
Price : How much and how often
Subscription : Customer's recurring payment
Invoice : Generated for each billing cycle
4. Customer Management
Create and manage customer records
Store multiple payment methods
Track customer metadata
Manage billing details
Quick Start
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md . Read that file when the navigation tier above is insufficient.
Testing