---
title: "Stripe’s payments APIs: The first 10 years"
description: "Stripe's payments API evolved from a card-centric Token-and-Charge model, famous as \"seven lines of code\", through ad hoc extensions for ACH debit (a pending state) and Bitcoin (a separate BitcoinReceiver), to the unified Sources API."
url: "https://swe.quest/articles/stripe-s-payments-apis-the-first-10-years-962fcdaff95a6285"
canonical: "https://stripe.com/blog/payment-api-design"
source: "Stripe"
published: "2020-12-15"
difficulty: "medium"
kind: "Case study"
reading_minutes: 24
tags: ["api-design","payments","system-design"]
---

# Stripe’s payments APIs: The first 10 years

A post on [Stripe](https://swe.quest/sources/stripe.md), published 2020-12-15, 24 min read, Case study. Original: [https://stripe.com/blog/payment-api-design](https://stripe.com/blog/payment-api-design)

## Summary

Stripe's payments API evolved from a card-centric Token-and-Charge model, famous as "seven lines of code", through ad hoc extensions for ACH debit (a pending state) and Bitcoin (a separate BitcoinReceiver), to the unified Sources API. Each extension piled product debt onto abstractions built for cards, the simplest payment method because it finalizes immediately and needs no customer action. The result was two state machines split across client and server, parallel synchronous and webhook-driven fulfillment paths, and lost payments when browsers dropped connectivity before a Charge was created. The key lesson is that global payment methods are not the exception, cards are, and that recognition drove the redesign toward the PaymentIntents API.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- REST API basics ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- webhooks
- payment processing concepts

## Keywords

Stripe, PaymentIntents, Sources API, Charges API, Stripe.js, ACH, iDEAL, 3D Secure

## Related posts

- [Stripe: An orchestration layer, not a platform](https://swe.quest/articles/stripe-an-orchestration-layer-not-a-platform-2631e1b527d6ba7d.md): Render · 2026-08-09 · Easy · 4 min read · API design, Payments & fintech, AI agents, Developer tools
  Stripe Projects is a CLI and open protocol that lets developers (or coding agents) create provider accounts, provision services, manage environment variables and pay for upgrades across roughly 50 providers from one place.
- [Introducing the commerce payments protocol](https://swe.quest/articles/introducing-the-commerce-payments-protocol-364920964bfb2054.md): Shopify Engineering · 2025-06-12 · Medium · 10 min read · Payments & fintech, System design, Security
  The Commerce Payments Protocol, built by Coinbase and Shopify on Base, brings card-style authorize-and-capture flows onchain using an immutable escrow smart contract between payer and receiver.
- [Building with Stripe Data Pipeline and the Neon backend](https://swe.quest/articles/building-with-stripe-data-pipeline-and-the-neon-backend-d3614e7e4b927058.md): Neon · 2026-10-26 · Medium · 11 min read · Payments & fintech, PostgreSQL, System design, Debugging, Serverless
  Stripe Data Pipeline's real-time sync streams Stripe objects into Postgres tables within seconds, which lets apps drop webhooks entirely: they write to Stripe's API and read charges, prices and promotion codes from synced stripe.\* tables.
- [Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents](https://swe.quest/articles/agents-that-can-pay-building-restock-with-stripe-s-link-and-managed-deep-agents-d2c567a5926dc321.md): LangChain · 2026-10-08 · Medium · 6 min read · AI agents, Payments & fintech, Identity & auth, API design
  Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases.
- [Beyond Test Cards: A Fake Payment Provider for Testing at Scale](https://swe.quest/articles/beyond-test-cards-a-fake-payment-provider-for-testing-at-scale-9be029b6af37f767.md): Lyft Engineering · 2026-11-10 · Medium · 15 min read · Payments & fintech, Testing, Resilience, System design
  Lyft built a Fake Payment Provider that implements the same provider interface as real processors (tokenize, authorize, increment, capture, charge, refund, void), so it can simulate partial failures, soft declines with retries, pending responses, timeouts and outages that processor test cards cannot.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
