Skip to main content
skill Claude Code CX Codex Cursor

stripe-integration — Claude Code skill: payments and install

This skill covers Stripe Checkout, subscriptions, webhooks, refunds, and saved payment methods. Use it when a project needs one-time or recurring payments.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install payment-processing@claude-code-workflows
Open on GitHub

What stripe-integration does

The skill lays out Stripe integration for one-time charges and recurring billing. It covers Checkout Sessions, Payment Intents, and Setup Intents, along with customer records, payment methods, refunds, disputes, and SCA. Checkout Sessions support Stripe-hosted checkout, embedded checkout, and custom interfaces built with Elements.

The webhook section maps payment success and failure, subscription changes and cancellations, refunds, and successful invoice payments. The examples use Python, test keys such as sk_test_..., and test cards for successful payments, declines, 3D Secure, and insufficient funds. Payment Intents require Stripe.js for the PCI-compliant flow, so that dependency matters before choosing the bespoke path.

Worked patterns live in references/details.md. The skill also covers products, prices, subscriptions, invoices, customer metadata, and Stripe Connect marketplace flows.

What it helps with

  • add Stripe Checkout for a one-time payment
  • build recurring subscription billing
  • route webhook events for payments and refunds
  • test declined and 3D Secure payment flows

Example prompts for the agent

  • Set up a Stripe subscription checkout in `app.py`, use `mode='subscription'`, and return the created `session.url` to the customer.
  • Add handlers for `payment_intent.succeeded`, `payment_intent.payment_failed`, and `charge.refunded` to the payment server.
  • Run the payment flow in test mode with `sk_test_...` and the cards from `TEST_CARDS`.

How to install stripe-integration

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install payment-processing@claude-code-workflows

This installs the whole payment-processing plugin with all its skills

2Skills CLI (Vercel)

npx skills add wshobson/agents --skill stripe-integration -a claude-code

3Manually: put the files in place

~/.claude/skills/stripe-integration/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/stripe-integration/

From the same set213

The whole set →
typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. Claude Code CX Codex Cursor 92,169installs tailwind-design-system Seth Hobson Helps build design systems with Tailwind CSS v4, from theme tokens to component variants. Use it when a project needs shared UI patterns. Claude Code CX Codex Cursor 70,180installs brand-landingpage Travis D. Elliott This skill interviews you about the product and its visual direction, then builds a landing page through Stitch. Use it when there’s no established design yet. Claude Code CX Codex Cursor 39,476installs python-testing-patterns Seth Hobson This skill guides Python testing with pytest, fixtures and mocks. Use it when building a test suite or tracking down failing checks. Claude Code CX Codex Cursor 36,943installs python-performance-optimization Seth Hobson This skill profiles Python code to locate CPU and memory bottlenecks. Use it when an application responds slowly or consumes too many resources. Claude Code CX Codex Cursor 35,675installs nextjs-app-router-patterns Seth Hobson This skill covers Next.js App Router patterns for rendering, routing, and data fetching. Use it when starting an App Router project or moving from Pages Router. Claude Code CX Codex Cursor 32,529installs api-design-principles Seth Hobson Use this skill to plan or review REST and GraphQL APIs. It helps when writing a specification or setting API conventions for a team. Claude Code CX Codex Cursor 30,348installs code-review-excellence Seth Hobson This skill guides pull request reviews, catches logic and security issues, and helps teams give specific feedback. Use it for review standards or developer mentoring. Claude Code CX Codex Cursor 30,193installs

Similar

golang-samber-hot samber Guides AI agents in configuring in-memory caching with samber/hot for Go 1.22+. Useful when sizing memory budgets, setting TTLs, or picking eviction policies. Claude Code CX Codex Cursor +1 38,100installs golang-samber-oops samber Skill adds support for samber/oops to Claude Code, Cursor and other IDEs — a Go library that brings structured error handling with context, stack traces, error codes, and user-facing messages. Claude Code CX Codex Cursor +1 38,100installs golang-samber-ro samber Teaches the agent to work with samber/ro — a ReactiveX implementation in Go with 150+ operators, cold and hot observables, five subject types, and automatic backpressure. Claude Code CX Codex Cursor +1 38,000installs golang-swagger samber Adds guidance for OpenAPI and Swagger docs in Go through annotations and spec generation. Useful when documenting handlers or reviewing an existing API. Claude Code CX Codex Cursor +1 37,000installs golang-spf13-cobra samber Skill for spf13/cobra, the Go library for building command trees, validating arguments, parsing flags, and generating shell completion. Use it when building or extending a CLI application in Go. Claude Code CX Codex Cursor +1 37,000installs finding-google-skills official Google LLC This skill finds the right entry in Google’s skill catalog for stack decisions and setup. Use it when a Google product is named or remains a viable platform option. Claude Code Gemini CLI CX Codex 4,200installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs google-agents-cli-adk-code official Google A reference skill for building ADK agents with tools, callbacks, state, and workflows. Use it when an agent project needs concrete API patterns or code examples. Claude Code CX Codex Cursor +1 511,400installs

Questions about stripe-integration

How do I install stripe-integration in Claude Code?

Run /plugin marketplace add wshobson/agents, then run /plugin install payment-processing@claude-code-workflows.

What does stripe-integration do?

It guides Stripe payment integration for Checkout, subscriptions, webhooks, refunds, customer records, and saved payment methods. It also includes Python testing patterns and test card scenarios.

Which platforms support stripe-integration?

The skill is intended for Claude Code, Codex, and Cursor. Payment Intents require Stripe.js for the PCI-compliant flow.

Source text

SKILL.md · MIT
---
name: stripe-integration
description: 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.
---

# 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

```python
import stripe

stripe.api_key = "sk_test_..."

# Create a checkout session
session = stripe.checkout.Session.create(
    line_items=[{
        'price_data': {
            'currency': 'usd',
            'product_data': {
                'name': 'Premium Subscription',
            },
            'unit_amount': 2000,  # $20.00
            'recurring': {
                'interval': 'month',
            },
        },
        'quantity': 1,
    }],
    mode='subscription',
    success_url='https://yourdomain.com/success?session_id={CHECKOUT_SESSION_ID}',
    cancel_url='https://yourdomain.com/cancel'
)

# Redirect user to session.url
print(session.url)
```

## Detailed patterns and worked examples

Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.

## Testing

```python
# Use test mode keys
stripe.api_key = "sk_test_..."

# Test card numbers
TEST_CARDS = {
    'success': '4242424242424242',
    'declined': '4000000000000002',
    '3d_secure': '4000002500003155',
    'insufficient_funds': '4000000000009995'
}

def test_payment_flow():
    """Test complete payment flow."""
    # Create test customer
    customer = stripe.Customer.create(
        email="[email protected]"
    )

    # Create payment intent
    intent = stripe.PaymentIntent.create(
        amount=1000,
        automatic_payment_methods={
            'enabled': True
        },
        currency='usd',
        customer=customer.id
    )

    # Confirm with test card
    confirmed = stripe.PaymentIntent.confirm(
        intent.id,
        payment_method='pm_card_visa'  # Test payment method
    )

    assert confirmed.status == 'succeeded'
```

© Seth Hobson · MIT · wshobson/agents

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor