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

    Interface WithStripeTerminalProps

    Public SDK functions and state returned by useStripeTerminal and injected by withStripeTerminal. Use inside StripeTerminalProvider.

    interface WithStripeTerminalProps {
        cancelCollectData: () => Promise<{ error?: StripeError }>;
        cancelCollectInputs: () => Promise<{ error?: StripeError }>;
        cancelCollectPaymentMethod: () => Promise<{ error?: StripeError }>;
        cancelCollectSetupIntent: () => Promise<{ error?: StripeError }>;
        cancelConfirmPaymentIntent: () => Promise<{ error?: StripeError }>;
        cancelConfirmSetupIntent: () => Promise<{ error?: StripeError }>;
        cancelDiscovering: () => Promise<CancelDiscoveringResultType>;
        cancelEasyConnect: () => Promise<CancelDiscoveringResultType>;
        cancelInstallingUpdate: () => Promise<{ error?: StripeError }>;
        cancelPaymentIntent: (
            params: CancelPaymentMethodParams,
        ) => Promise<PaymentIntentResultType>;
        cancelProcessPaymentIntent: () => Promise<{ error?: StripeError }>;
        cancelProcessRefund: () => Promise<{ error?: StripeError }>;
        cancelProcessSetupIntent: () => Promise<{ error?: StripeError }>;
        cancelReaderReconnection: () => Promise<{ error?: StripeError }>;
        cancelSetupIntent: (
            params: CancelSetupIntentMethodParams,
        ) => Promise<SetupIntentResultType>;
        clearCachedCredentials: () => Promise<{ error?: StripeError }>;
        clearReaderDisplay: () => Promise<ClearReaderDisplayResultType>;
        collectData: (params: CollectDataParams) => Promise<CollectDataResultType>;
        collectInputs: (
            params: ICollectInputsParameters,
        ) => Promise<ICollectInputsResults>;
        collectPaymentMethod: (
            params: CollectPaymentMethodParams,
        ) => Promise<PaymentIntentResultType>;
        collectSetupIntentPaymentMethod: (
            params: CollectSetupIntentPaymentMethodParams,
        ) => Promise<SetupIntentResultType>;
        confirmPaymentIntent: (
            param: ConfirmPaymentMethodParams,
        ) => Promise<PaymentIntentResultType>;
        confirmSetupIntent: (
            params: ConfirmSetupIntentMethodParams,
        ) => Promise<SetupIntentResultType>;
        connectedReader: Reader.Type | null | undefined;
        connectReader: (
            params: ConnectReaderParams,
        ) => Promise<ConnectReaderResultType>;
        createPaymentIntent: (
            params: CreatePaymentIntentParams,
        ) => Promise<PaymentIntentResultType>;
        createSetupIntent: (
            params: CreateSetupIntentParams,
        ) => Promise<SetupIntentResultType>;
        disconnectReader: () => Promise<DisconnectReaderResultType | undefined>;
        discoveredReaders: Reader.Type[];
        discoverReaders: (
            params: DiscoverReadersParams,
        ) => Promise<DiscoverReadersResultType>;
        easyConnect: (
            params: EasyConnectParams,
        ) => Promise<ConnectReaderResultType>;
        emitter: EventEmitter | undefined;
        getConnectedReader: () => Promise<GetConnectedReaderType>;
        getConnectionStatus: () => Promise<ConnectionStatus>;
        getIsInitialized: () => boolean;
        getLocations: (
            params: GetLocationsParams,
        ) => Promise<GetLocationsResultType>;
        getNativeSdkVersion: () => Promise<string>;
        getOfflineStatus: () => Promise<OfflineStatus>;
        getPaymentStatus: () => Promise<PaymentStatus>;
        getReaderSettings: () => Promise<ReaderSettings>;
        initialize: () => Promise<InitializeResultType>;
        installAvailableUpdate: () => Promise<{ error?: StripeError }>;
        isInitialized: boolean;
        loading: boolean;
        print: (content: string) => Promise<{ error?: StripeError }>;
        processPaymentIntent: (
            param: ProcessPaymentIntentParams,
        ) => Promise<PaymentIntentResultType>;
        processRefund: (params: RefundParams) => Promise<ProcessRefundResultType>;
        processSetupIntent: (
            params: ProcessSetupIntentParams,
        ) => Promise<SetupIntentResultType>;
        rebootReader: () => Promise<RebootReaderResultType | undefined>;
        retrievePaymentIntent: (
            clientSecret: string,
        ) => Promise<PaymentIntentResultType>;
        retrieveSetupIntent: (
            clientSecret: string,
        ) => Promise<SetupIntentResultType>;
        setReaderDisplay: (cart: Cart) => Promise<{ error?: StripeError }>;
        setReaderSettings: (
            params: ReaderSettingsParameters,
        ) => Promise<ReaderSettings>;
        setSimulatedCard: (cardNumber: string) => Promise<{ error?: StripeError }>;
        setSimulatedCollectInputsResult: (
            simulatedCollectInputsBehavior: string,
        ) => Promise<{ error?: StripeError }>;
        setSimulatedOfflineMode: (
            simulatedOffline: boolean,
        ) => Promise<{ error?: StripeError }>;
        setTapToPayUxConfiguration: (
            params: TapToPayUxConfiguration,
        ) => Promise<{ error?: StripeError }>;
        supportsReadersOfType: (
            params: ReaderSupportParams,
        ) => Promise<ReaderSupportResult>;
    }
    Index

    Properties

    cancelCollectData: () => Promise<{ error?: StripeError }> = _cancelCollectData

    Cancels an in-progress collectData call.

    cancelCollectInputs: () => Promise<{ error?: StripeError }> = _cancelCollectInputs

    Cancels an in-progress collectInputs call.

    cancelCollectPaymentMethod: () => Promise<{ error?: StripeError }> = _cancelCollectPaymentMethod

    Cancels an in-progress collectPaymentMethod call.

    cancelCollectSetupIntent: () => Promise<{ error?: StripeError }> = _cancelCollectSetupIntent

    Cancels an in-progress collectSetupIntentPaymentMethod call.

    cancelConfirmPaymentIntent: () => Promise<{ error?: StripeError }> = _cancelConfirmPaymentIntent

    Cancels an in-progress confirmPaymentIntent call.

    cancelConfirmSetupIntent: () => Promise<{ error?: StripeError }> = _cancelConfirmSetupIntent

    Cancels an in-progress confirmSetupIntent call.

    cancelDiscovering: () => Promise<CancelDiscoveringResultType> = _cancelDiscovering

    Cancels an in-progress discoverReaders call.

    cancelEasyConnect: () => Promise<CancelDiscoveringResultType> = _cancelEasyConnect

    Cancels an in-progress easyConnect call.

    cancelInstallingUpdate: () => Promise<{ error?: StripeError }> = _cancelInstallingUpdate

    Cancels an in-progress reader software update.

    cancelPaymentIntent: (
        params: CancelPaymentMethodParams,
    ) => Promise<PaymentIntentResultType> = _cancelPaymentIntent

    Cancels a PaymentIntent.

    cancelProcessPaymentIntent: () => Promise<{ error?: StripeError }> = _cancelProcessPaymentIntent

    Cancels an in-progress processPaymentIntent call.

    cancelProcessRefund: () => Promise<{ error?: StripeError }> = _cancelProcessRefund

    Cancels an in-progress processRefund call.

    cancelProcessSetupIntent: () => Promise<{ error?: StripeError }> = cancelProcessSetupIntent

    Cancels an in-progress processSetupIntent call.

    cancelReaderReconnection: () => Promise<{ error?: StripeError }> = _cancelReaderReconnection

    Cancels an in-progress automatic reader reconnection.

    cancelSetupIntent: (
        params: CancelSetupIntentMethodParams,
    ) => Promise<SetupIntentResultType> = _cancelSetupIntent

    Cancels a SetupIntent.

    clearCachedCredentials: () => Promise<{ error?: StripeError }> = _clearCachedCredentials

    Clears the cached connection token and reader sessions, for example when switching accounts.

    clearReaderDisplay: () => Promise<ClearReaderDisplayResultType> = _clearReaderDisplay

    Clears the reader's screen.

    collectData: (params: CollectDataParams) => Promise<CollectDataResultType> = _collectData

    Collects non-payment data, such as a magstripe card, using the connected reader.

    collectInputs: (
        params: ICollectInputsParameters,
    ) => Promise<ICollectInputsResults> = _collectInputs

    Displays forms on the reader and collects the customer's input.

    collectPaymentMethod: (
        params: CollectPaymentMethodParams,
    ) => Promise<PaymentIntentResultType> = _collectPaymentMethod

    Collects a payment method for a PaymentIntent using the connected reader.

    collectSetupIntentPaymentMethod: (
        params: CollectSetupIntentPaymentMethodParams,
    ) => Promise<SetupIntentResultType> = _collectSetupIntentPaymentMethod

    Collects a payment method for a SetupIntent using the connected reader.

    confirmPaymentIntent: (
        param: ConfirmPaymentMethodParams,
    ) => Promise<PaymentIntentResultType> = _confirmPaymentIntent

    Confirms a PaymentIntent after collectPaymentMethod succeeds.

    confirmSetupIntent: (
        params: ConfirmSetupIntentMethodParams,
    ) => Promise<SetupIntentResultType> = _confirmSetupIntent

    Confirms a SetupIntent after collectSetupIntentPaymentMethod succeeds.

    connectedReader: Reader.Type | null | undefined

    The connected reader, or null or undefined when no reader is connected.

    connectReader: (params: ConnectReaderParams) => Promise<ConnectReaderResultType> = _connectReader

    Connects to a reader returned by discoverReaders.

    createPaymentIntent: (
        params: CreatePaymentIntentParams,
    ) => Promise<PaymentIntentResultType> = _createPaymentIntent

    Creates a PaymentIntent.

    createSetupIntent: (
        params: CreateSetupIntentParams,
    ) => Promise<SetupIntentResultType> = _createSetupIntent

    Creates a SetupIntent.

    disconnectReader: () => Promise<DisconnectReaderResultType | undefined> = _disconnectReader

    Disconnects from the connected reader.

    discoveredReaders: Reader.Type[]

    Readers found by the latest discoverReaders call.

    discoverReaders: (
        params: DiscoverReadersParams,
    ) => Promise<DiscoverReadersResultType> = _discoverReaders

    Starts discovering readers with the given discovery method. Discovered readers are reported through UserCallbacks.onUpdateDiscoveredReaders.

    easyConnect: (params: EasyConnectParams) => Promise<ConnectReaderResultType> = _easyConnect

    Discovers and connects to a reader in a single call.

    emitter: EventEmitter | undefined = emitter

    Event emitter for SDK events. Event types are exported as constants, such as CHANGE_CONNECTION_STATUS.

    getConnectedReader: () => Promise<GetConnectedReaderType> = _getConnectedReader

    Returns the connected reader, if any.

    getConnectionStatus: () => Promise<ConnectionStatus> = _getConnectionStatus

    Returns the current reader connection status.

    getIsInitialized: () => boolean

    Returns whether the SDK is initialized. Unlike isInitialized, reads the latest value outside the render cycle.

    getLocations: (params: GetLocationsParams) => Promise<GetLocationsResultType> = _getLocations

    Lists the Locations belonging to the account.

    getNativeSdkVersion: () => Promise<string> = _getNativeSdkVersion

    Returns the version of the native Stripe Terminal SDK.

    getOfflineStatus: () => Promise<OfflineStatus> = _getOfflineStatus

    Returns the offline status of the SDK and the connected reader.

    getPaymentStatus: () => Promise<PaymentStatus> = _getPaymentStatus

    Returns the current payment status.

    getReaderSettings: () => Promise<ReaderSettings> = _getReaderSettings

    Returns the connected reader's settings.

    initialize: () => Promise<InitializeResultType> = _initialize

    Initializes the SDK. Call once, before any other method, inside StripeTerminalProvider.

    installAvailableUpdate: () => Promise<{ error?: StripeError }> = _installAvailableUpdate

    Installs the software update reported by UserCallbacks.onDidReportAvailableUpdate.

    isInitialized: boolean

    Whether initialize has completed successfully.

    loading: boolean

    Whether an SDK call is in progress.

    print: (content: string) => Promise<{ error?: StripeError }> = _print

    Prints the specified content to the connected reader's printer, if available.

    Type Declaration

      • (content: string): Promise<{ error?: StripeError }>
      • Parameters

        • content: string

          The content to print. Must be an image (JPEG/PNG) encoded as a base64 string or 'data:' URI scheme.

        Returns Promise<{ error?: StripeError }>

    processPaymentIntent: (
        param: ProcessPaymentIntentParams,
    ) => Promise<PaymentIntentResultType> = _processPaymentIntent

    Collects a payment method and confirms the PaymentIntent in a single call.

    processRefund: (params: RefundParams) => Promise<ProcessRefundResultType> = _processRefund

    Collects a payment method and refunds a charge or PaymentIntent.

    processSetupIntent: (
        params: ProcessSetupIntentParams,
    ) => Promise<SetupIntentResultType> = _processSetupIntent

    Collects a payment method and confirms the SetupIntent in a single call.

    rebootReader: () => Promise<RebootReaderResultType | undefined> = _rebootReader

    Reboots the connected reader.

    retrievePaymentIntent: (
        clientSecret: string,
    ) => Promise<PaymentIntentResultType> = _retrievePaymentIntent

    Retrieves a PaymentIntent by its client secret.

    retrieveSetupIntent: (clientSecret: string) => Promise<SetupIntentResultType> = _retrieveSetupIntent

    Retrieves a SetupIntent by its client secret.

    setReaderDisplay: (cart: Cart) => Promise<{ error?: StripeError }> = _setReaderDisplay

    Displays a cart on the reader's screen.

    setReaderSettings: (params: ReaderSettingsParameters) => Promise<ReaderSettings> = _setReaderSettings

    Updates the connected reader's settings.

    setSimulatedCard: (cardNumber: string) => Promise<{ error?: StripeError }> = _setSimulatedCard

    Sets the test card number a simulated reader presents.

    setSimulatedCollectInputsResult: (
        simulatedCollectInputsBehavior: string,
    ) => Promise<{ error?: StripeError }> = _setSimulatedCollectInputsResult

    Sets the result a simulated reader returns from collectInputs.

    setSimulatedOfflineMode: (
        simulatedOffline: boolean,
    ) => Promise<{ error?: StripeError }> = _setSimulatedOfflineMode

    Simulates the device going offline or back online.

    setTapToPayUxConfiguration: (
        params: TapToPayUxConfiguration,
    ) => Promise<{ error?: StripeError }> = _setTapToPayUxConfiguration

    Customizes the Tap to Pay screen.

    supportsReadersOfType: (
        params: ReaderSupportParams,
    ) => Promise<ReaderSupportResult> = _supportsReadersOfType

    Checks whether the device supports readers of the given type and discovery method.