@stripe/stripe-terminal-react-native
    Preparing search index...

    Type Alias TestReaderUpdate

    TestReaderUpdate:
        | { components: UpdateComponent[]; type: "available" }
        | { components: UpdateComponent[]; type: "required" }
        | { components: UpdateComponent[]; type: "requiredOffline" }
        | { type: "lowBattery" }
        | { type: "lowBatterySucceedConnect" }
        | { type: "random" }

    Configures a simulated reader update for testing purposes. Pass as testReaderUpdate on connection params to exercise update flows in test mode on both simulated and physical readers.

    • available — An optional update is available and will be announced during connect.
    • required — A required update will be performed during connect.
    • requiredOffline — A required update exists. When connecting offline, connection will fail because the reader's version is not allowed. When connecting online, the reader will update and connect normally.
    • lowBattery — A required update exists but the reader's battery is too low for the update to begin. The connection will fail.
    • lowBatterySucceedConnect — A required update exists but the reader's battery is too low for the update to begin. The update will fail but connection succeeds because the reader is on a recent software version.
    • random — Randomly selects a concrete update scenario to exercise various states, or no update being available.