Payments
Stripe mock API
Stripe payments API: customers, products, prices, payment methods, payment intents, charges, refunds, subscriptions, invoices, Checkout sessions and signed webhooks.
At a glance
- Operations
- 612
- Stateful operations
- 51
- Stateful resources
- 11
- Webhook events
- 14
- Vendor API version
- 2026-09-30.endive
- Verification
- Spec-verified
How it works
Use Stripe without calling Stripe, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer sk_test_YourSecretKey State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Customers | 6 |
| Products | 5 |
| Prices | 4 |
| Payment methods | 6 |
| Payment intents | 7 |
| Charges | 3 |
| Refunds | 4 |
| Subscriptions | 5 |
| Invoices | 2 |
| Checkout sessions | 4 |
| Webhook endpoints | 5 |
Webhooks
Events your handlers can receive
- customer.deleted
- customer.created
- customer.updated
- payment_intent.payment_failed
- charge.succeeded
- payment_intent.succeeded
- payment_intent.created
- payment_intent.canceled
- charge.refunded
- customer.subscription.deleted
- customer.subscription.created
- invoice.paid
- customer.subscription.updated
- checkout.session.expired
Deliveries are signed with the stripe scheme, so your verification code runs unchanged.
Coverage
612 operations
51 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 561 |
| Payment intents | 7 |
| Customers | 6 |
| Payment methods | 6 |
| Products | 5 |
| Subscriptions | 5 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
Source and limits
License, source and limits
- Generated from the Stripe, Inc. API description, licensed under MIT.
- Stripe, Inc. API documentation
- Source specification
Each collection holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: customers, products, prices, payment methods, payment intents, charges, refunds, subscriptions, invoices, Checkout sessions and webhook endpoints; every other operation answers a schema-valid sample. Not reproduced: expand[] (accepted, ignored), confirm=true on payment-intent create (call /confirm), 3-D Secure and async payment states, proration and billing periods (one fixed period per interval), invoices beyond the one generated by a subscription, search endpoints (sample data), the failed charge object of a declined payment. Leniencies: references to ids that were never created (a price on a subscription, a charge on a refund, a customer on a payment intent) are accepted on create; confirming an already-authorised intent is a no-op; Idempotency-Key replays return the current object, scoped per API key. Objects created in the same second list oldest-first. Test cards: pm_card_visa, pm_card_visa_debit, pm_card_chargeDeclined and card tokens tok_visa, tok_visa_debit, tok_mastercard, tok_chargeDeclined.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Stripe, Inc. Stripe is a trademark of its owner.