Skip to main content

Documentación

Receipt & Print API
Print a stored receipt

Silently reprints the receipt for a completed transaction. cardHolder = true prints the cardholder copy; false prints the merchant copy.

Api.printReceipt(context, uti, true);   // cardholder copy
Api.printReceipt(context, uti, false);  // merchant copy

Response: ACTION_GET_PRINT_STATUS_RESULT with extra PRISULT (int). See Printer Status Codes.

Print a custom message

Prints a custom-formatted receipt without any transaction data.


Api.printOnCommand(context, formattedMessage);

Response: ACTION_GET_PRINT_STATUS_RESULT