
Lyft Engineering · 15 min readBackend & APIs
Beyond Test Cards: A Fake Payment Provider for Testing at Scale
The post explains why standard test cards are insufficient for rideshare payment testing and shows how Lyft built a Fake Payment Provider that can simulate any processor behavior on demand. It details the architecture, access control, state persistence, and scenario modeling needed to run realistic load tests safely in production.
- Use a fake provider behind the same interface as real processors to avoid external API calls.
- Persist scenario state in the token so it survives retries and time‑outs.
- Model each action with a spec that defines success, delay, and error code.