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

    Interface StripeTerminalSdkType

    interface StripeTerminalSdkType {
        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(): CancelDiscoveringResultType;
        cancelEasyConnect(): Promise<{ error?: StripeError }>;
        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(
            params: ConfirmPaymentMethodParams,
        ): Promise<PaymentIntentResultType>;
        confirmQrCodeDisplayed(): Promise<void>;
        confirmSetupIntent(
            params: ConfirmSetupIntentMethodParams,
        ): Promise<SetupIntentResultType>;
        connectReader(
            params: ConnectReaderParams,
        ): Promise<ConnectReaderResultType>;
        createPaymentIntent(
            params: CreatePaymentIntentParams,
        ): Promise<PaymentIntentResultType>;
        createSetupIntent(
            params: CreateSetupIntentParams,
        ): Promise<SetupIntentResultType>;
        disconnectReader(): Promise<DisconnectReaderResultType>;
        discoverReaders(params: DiscoverReadersParams): DiscoverReadersResultType;
        easyConnect(param: EasyConnectParams): Promise<ConnectReaderResultType>;
        failPaymentMethodSelection(error?: string): Promise<void>;
        failQrCodeDisplay(error?: string): Promise<void>;
        getConnectedReader(): Promise<Reader.Type>;
        getConnectionStatus(): Promise<ConnectionStatus>;
        getLocations(params: GetLocationsParams): Promise<GetLocationsResultType>;
        getNativeSdkVersion(): Promise<string>;
        getOfflineStatus(): Promise<OfflineStatus>;
        getPaymentStatus(): Promise<PaymentStatus>;
        getReaderSettings(): Promise<ReaderSettings>;
        initialize(params: InternalInitParams): InitializeResultNativeType;
        installAvailableUpdate(): Promise<void>;
        print(content: string): Promise<{ error?: StripeError }>;
        processPaymentIntent(
            params: ProcessPaymentIntentParams,
        ): Promise<PaymentIntentResultType>;
        processRefund(params: RefundParams): Promise<ProcessRefundResultType>;
        processSetupIntent(
            params: ProcessSetupIntentParams,
        ): Promise<SetupIntentResultType>;
        rebootReader(): Promise<RebootReaderResultType>;
        retrievePaymentIntent(
            clientSecret: string,
        ): Promise<PaymentIntentResultType>;
        retrieveSetupIntent(clientSecret: string): Promise<SetupIntentResultType>;
        selectPaymentOption(paymentOptionType: string): Promise<void>;
        setConnectionToken(params: SetConnectionTokenParams): Promise<void>;
        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 }>;
        simulateReaderUpdate(update: SimulateUpdateType): Promise<void>;
        supportsReadersOfType(
            params: ReaderSupportParams,
        ): Promise<ReaderSupportResult>;
    }
    Index

    Methods

    • Parameters

      • Optionalerror: string

      Returns Promise<void>

    • Parameters

      • params: InternalInitParams

      Returns InitializeResultNativeType

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

      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 }>

      A promise that resolves to an empty object if the print succeeds, or an object containing a StripeError if the print fails.

    • Parameters

      • paymentOptionType: string

      Returns Promise<void>