Function displayMessageInPinPad

  • Use this if you are running in a mobile and want to display a message in PinPad, if you don't send the macAddress we try to use the first pinpad at the list.

    Since

    0.1.7

    Parameters

    • pinpadMessage: String

      The message to display in the PinPad.

    • pinpadMacAddress: null | String = null

      When using a Bluetooth PinPad you need to send it's mac address here, if you send null here, we will use the first in the list if you are not running in a POS.

    • dialogMessage: null | String = null

      Default UI dialog main message.

    • dialogTitle: null | String = null

      Default UI dialog title.

    • useDefaultUI: Boolean = true

      Wheter to use Stone's default progress dialog or not.

    • progressCallbackEventName: ProgressEventName = 'DISPLAY_MESSAGE_IN_PINPAD_PROGRESS'

      The native event name to map with the useNativeEventListener hook.

    Returns Promise<boolean>