Skip to content

stripe-api

Use when working with Stripe API for payments, subscriptions, checkout sessions, webhooks, or billing. Also use when setting up Stripe authentication, handling payment errors, or troubleshooting rate limits.

ModelSource
sonnetpack: payments

Stripe API (version 2026-01-28.clover) for accepting payments, managing subscriptions, and building checkout experiences. Uses PaymentIntents for custom payment flows and Checkout Sessions for hosted/embedded payment pages.

Full Reference

┏━ 🔧 stripe-api ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with Stripe API for payments,… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Stripe API (version 2026-01-28.clover) for accepting payments, managing subscriptions, and building checkout experiences. Uses PaymentIntents for custom payment flows and Checkout Sessions for hosted/embedded payment pages.

ItemValue
Current API Version2026-01-28.clover
Base URLhttps://api.stripe.com/v1
AuthSecret key (sk_live_... / sk_test_...)
Python SDKpip install stripe (v14.x)
Node.js SDKnpm install stripe (v20.x)
VersioningDate-based with codenames: acacia → basil → clover
Docsdocs.stripe.com/api
FileContents
reference/setup.mdAPI versioning, authentication, idempotency keys, SDK setup for Python/Node.js/other
reference/payments.mdPaymentIntents, Payment Element, lifecycle states, auth+capture, saved payment methods
reference/checkout.mdHosted and embedded Checkout Sessions, subscription checkout, session expiration
reference/subscriptions.mdCreating subscriptions, lifecycle, flexible billing mode, trials, pausing, canceling, dunning
reference/webhooks.mdEndpoint setup, signature verification, best practices, secret rotation, local testing with CLI
reference/errors.mdError types, HTTP status codes, common error codes, handling patterns for Python/Node.js
reference/rate-limits.mdGlobal limits, per-endpoint limits, read allocation, exponential backoff pattern
reference/testing.mdTest card numbers, sandbox vs test mode, webhook local testing via Stripe CLI
reference/changelog.mdClover breaking changes, new features, active deprecations, Basil→Clover migration checklist
reference/fees.mdUS payment processing fees, additional service fees, currency minimums

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.