The Stripe Terminal SDK comes with a built-in simulated card reader, so you can develop and test your app without connecting to physical hardware. Whether your integration is complete or you’re just starting out, use the simulated reader to emulate all the Terminal flows in your app: connecting to a reader, updating reader software, and collecting payments.
Note that the simulated reader does not provide a UI. After connecting to it in your app, you can see it working when calls to the Stripe SDK succeed.
To use the simulated reader, call
discoverReaders to search for readers, with the
simulated option set to
discoverReaders returns a result, call
connectReader to connect to the simulated reader.
Simulated reader configuration
The simulated reader supports a small amount of configuration, enabling you to test different flows within your point of sale application such as different card brands or error scenarios like a declined charge.
testCardNumber or a
testPaymentMethod options. To enable this behavior, insert this line of code before you call
- Internet Explorer 11 and Edge on Windows.
- Firefox on desktop platforms.
- Chrome and Safari on all platforms.
- The Android native browser on Android 4.4 and later.