Web application / Stripe

Stripe: Checkout settlement, Visa CE 3.0 disputes and Remote MCP bounds

Public OpenAPI 3.0 (612 operations / 431 paths), SDK, and OAuth RFC 9728 teardown of Stripe: Checkout fulfillment states, manual auth/capture, 45-day refund insolvency, staged dispute drafts, raw-byte webhooks, and Remote MCP constraints.

Contract model · conceptual sequence, not a claim about internal deployment
  1. CheckoutSession / manual auth vs Settlement
  2. BalanceTransaction -> Payout + 45d refund limit
  3. Raw-byte HMAC / v2 thin + mcp.stripe.com gate
01 / EMPIRICAL RECORD

Investigation question

How does Stripe separate Checkout and PaymentIntent authorization from BalanceTransaction clearing, handle 45-day refund failures and staged Visa CE 3.0 dispute drafts, verify raw-byte HMAC versus v2 thin events, and lock down Remote MCP credentials?

02 / EMPIRICAL RECORD

Observed

Analysis of Stripe’s public OpenAPI 3.0 specification (spec3.json release 2026-09-30.endive, 612 operations across 431 paths), official developer Markdown specs, RFC 9728 protected-resource metadata at mcp.stripe.com, and published npm packages (stripe@23.2.0, @stripe/mcp@0.3.4, and deprecated @stripe/agent-toolkit@0.9.1) maps four distinct operational boundaries. First, fulfillment decouples checkout completion from payment settlement: synchronous card payments emit checkout.session.completed with payment_status="paid", whereas delayed bank-debit rails (ACH/SEPA/Boleto) complete checkout with payment_status="unpaid" and settle later via checkout.session.async_payment_succeeded. Second, settled refunds that require bank details enter requires_action and fail permanently with failure_reason="insufficient_funds" if the merchant balance cannot cover the debit within 45 days. Third, Disputes support non-binding staging via POST /v1/disputes/{dispute} with submit=false (up to 150,000 characters of text plus purpose=dispute_evidence File IDs), alongside Visa Compelling Evidence 3.0 (reason code 10.4) matching at least 2 prior undisputed transactions from 120 to 364 days earlier sharing device/IP/account signals. Fourth, @stripe/agent-toolkit@0.9.1 is explicitly deprecated upstream in favor of Remote MCP (https://mcp.stripe.com), whose OAuth refresh tokens expire after 14 days, whose full-access sk_* key support sunsets on January 11, 2027, and whose OAuth mode cannot act on Connect accounts (requiring agent keys plus Stripe-Account headers).

03 / EMPIRICAL RECORD

Inferred

Four clean-room rules apply to payment and agent adapters: (1) gate physical or digital fulfillment strictly on payment_status == "paid" across both completed and async_payment_succeeded events, and prefer capture_method=manual before commitment so cancellations drop holds without settled-refund fees; (2) verify Stripe-Signature HMAC-SHA256 strictly against exact raw HTTP request bytes before JSON parsing, and treat v2.core.event thin payloads as wake-up pointers requiring authenticated fetch-back; (3) never treat mcp.stripe.com OAuth refresh tokens as perpetual daemon secrets given the 14-day ceiling; and (4) use agent API keys plus Stripe-Account headers rather than MCP OAuth for Connect platforms.

04 / METHODOLOGICAL BOUNDARY

Unknown & limitations

This public-artifact analysis covers OpenAPI schemas, official Markdown specifications, npm packages, and public OAuth discovery; no live merchant balance, payment processing, dispute submission, or authenticated Dashboard session was captured. Preview /v2/core/accounts and /v2/core/event_destinations surfaces documented in docs/webhooks.md are not yet enumerated in spec3.json (2026-09-30.endive).

05 / EMPIRICAL RECORD

Architecture

Stripe separates checkout and payment orchestration (/v1/checkout/sessions, /v1/payment_intents) from immutable clearing rows (/v1/balance_transactions, /v1/payouts), dispute evidence and risk workflows (/v1/refunds, /v1/disputes, /v1/files), async event delivery (/v1/webhook_endpoints, /v1/events, /v2/core/event_destinations), and agent control (https://mcp.stripe.com with access.stripe.com OAuth PKCE/DCR).

06 / EMPIRICAL RECORD

Domain & data models

CheckoutSession (ui_mode hosted/embedded/elements, payment_status unpaid/paid/no_payment_required) wraps PaymentIntent (single intent spanning multiple Charge attempts, capture_method, setup_future_usage). BalanceTransaction records signed integer minor-unit amount, fee, and net grouped by Payout. Event splits v1 inline snapshots from v2 thin notifications carrying only type, related_object.id, and context.

07 / EMPIRICAL RECORD

Workflows & state machines

Integrators reuse a single PaymentIntent with idempotency keys across cart updates rather than minting orphan intents, stage dispute evidence iteratively with submit=false before terminal close, reconcile BalanceTransactions per Payout rather than gross Charge amounts, and handle mcp.stripe.com 24-hour human confirmation URLs for sensitive MCP writes.

08 / EMPIRICAL RECORD

API & protocol surfaces

612 OpenAPI 3.0 operations across 431 paths (including 6 Checkout Session, 12 PaymentIntent, 5 Refund, 4 Dispute, 8 BalanceTransaction/Payout, and 7 Webhook/Event endpoints), authenticated via secret/agent Bearer keys with Stripe-Account Connect delegation or PKCE S256 OAuth (single mcp scope, 14-day refresh TTL) on https://mcp.stripe.com.