AI resources

Configure printings

With the printing feature, you can manage prints directly from your application and obtain them from the assigned terminal or send the print to a Bluetooth printer.

If you want to use a Bluetooth printer, it must be paired with the Point terminal. See Configure Bluetooth for more information.

With this feature, you can print purchase tickets and integrate custom prints. This functionality is useful for businesses that need to print complementary receipts, such as coupons or images.

-------|-------------| | Taxed Invoice (33) and Exempt (34) | Refers to the tax document that has legal validity before the Internal Revenue Service (SII). | | Taxed Receipt (39) and Exempt (41) | Refers to the document that the customer receives when making a purchase, which has accounting and tax validity. |

See below an example of how to print DTE (Electronic Tax Documents).

val bitmapPrinter = MPManager.bitmapPrinter
/*
If you need to print a DTE, replace the custom tag string with the xml
*/
val customTagToPrint: String = "{br}{b}Hello world{/b}{br}{br}{br}{s}this is a test text{/s}" 
/*
Optional parameter that allows printing the name of the payment method used if you want to
print an electronic receipt (DTE type 39,41).
Default value: null
*/
val paymentMethodName: String? = null
/*
Optional parameter that allows printing the pdf417 barcode (the stain) if you want to
print an electronic receipt (DTE type 39,41).
Default value: null
*/
val printPdf417InBoleta: Boolean? = null
bitmapPrinter.print(customTagToPrint, paymentMethodName, printPdf417InBoleta) { response ->
   response.doIfSuccess { printResult ->
       // Handle successful printing
   }.doIfError { error ->
       // Handle printing operation error
   }
}
final BitmapPrinter bitmapPrinter = MPManager.INSTANCE.getBitmapPrinter();
/*
If you need to print a DTE, replace the custom tag string with the xml
*/
final String customTagToPrint = "{br}{b}Hello world{/b}{br}{br}{br}{s}this is a test text{/s}"
/*
Optional parameter that allows printing the name of the payment method used if you want to
print an electronic receipt (DTE type 39,41).
*/
@Nullable
final String paymentMethodName
/*
Optional parameter that allows printing the pdf417 barcode (the stain) if you want to
print an electronic receipt (DTE type 39,41).
*/
@Nullable
final Boolean printPdf417InBoleta
final Function1<MPResponse<String>, Unit> callback = (final MPResponse<String> response) -> {
 if (response.getStatus() == ResponseStatus.SUCCESS) {
   // Handle successful printing
 } else {
   // Handle printing operation error
 }
 return Unit.INSTANCE;
};
bitmapPrinter.print(customTagToPrint, paymentMethodName, printPdf417InBoleta, callback);

::: :::: :::::