Function printReceiptInPOSPrinter

  • Prints a receipt when you are using a POS.

    Since

    0.1.7

    Parameters

    • receiptType: ReceiptType

      Which mode you want to print: CLIENT - customer, MERCHANT - merchant.

    • transactionAtk: String

      Transaction Initiator Key - ATK

    • isReprint: Boolean = false

      If you are printing the receipt again (This will add REPRINT in the top corner of the receipt).

    • 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 = 'PRINT_RECEIPT_IN_POS_PRINTER_PROGRESS'

      The native event name to map with the useNativeEventListener hook.

    Returns Promise<boolean>