// the find
stripe/stripe-mock
stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's testmode to make test suites integrating with Stripe faster and less brittle.
stripe-mock is an HTTP server that mimics the Stripe API surface for use in test suites. It validates request structure against Stripe's OpenAPI spec and returns fixture-based responses. It's made by Stripe themselves, so the spec stays current — this is what Stripe uses to test their own SDKs.
Driven directly by Stripe's published OpenAPI spec, so every endpoint, parameter name, and type is accurate without manual maintenance. The parameter reflection feature (send amount=123, get amount:123 back) is genuinely useful for testing the happy path without statefulness. Docker image and Homebrew tap make it trivial to drop into CI. HTTP/2 support over HTTPS is a nice touch for testing clients that care about protocol.
Stateless by design and by explicit future plan — you can't test flows that depend on created resources (create a customer, then list that customer's subscriptions). No support for Stripe's test-mode error simulation (e.g., card_declined), so you can't test your error-handling paths. Locked to the latest API version only, which is a real problem if you're on an older pinned version. Polymorphic endpoints always return the same type, so if your code branches on card vs bank account in a response, you can't exercise both branches.