Integrate our products into your software. Let's make payment happen together!
Look at all the possibilitiesHow to use the internal printer on a supported pax device.This functionality is currently only available on the pax A920 and A80 terminals.
The following code snippet demonstrates how you can use the internal printer to print a bitmap on a supported pax device. We recommend to use a Bitmap width of 384px and bitmap config Bitmap.Config.RGB_565 to print the receipt.
HardwareService paxService = new PaxService(); PrinterStatusListener printerStatusListener = new PrinterStatusListener() { @Override public void onSuccess(EPrinterStatus printerStatus) { //Printing successful } @Override public void onFailed(EPrinterStatus printerStatus) { //Printing failed } @Override public void onError(Error error) { //Error while trying to print } }; paxService.printBitmap(new Bitmap(), printerStatusListener, getBaseContext());
The following code snippet demonstrates how you can use the internal printer to print a PaymentReceipt when performing a transaction on a supported pax device.
HardwareService paxService = new PaxService(); PrinterStatusListener printerStatusListener = new PrinterStatusListener() { @Override public void onSuccess(EPrinterStatus printerStatus) { //Printing successful } @Override public void onFailed(EPrinterStatus printerStatus) { //Printing failed } @Override public void onError(Error error) { //Error while trying to print } }; PaymentDelegate paymentDelegate = new PaymentDelegate() { @Override public void printMerchantReceiptAndSignature(PaymentReceipt receipt) { printReceipt(paymentReceipt) } @Override public void printCustomerReceiptAndSignature(PaymentReceipt receipt) { printReceipt(paymentReceipt) } @Override public void printDccOffer(PaymentReceipt receipt) { printReceipt(paymentReceipt) } @Override public void printJournalReceipt(PaymentReceipt receipt) { printReceipt(paymentReceipt) } }; paymentService.payment(externalTerminal, payment, paymentDelegate); private void printReceipt(PaymentReceipt paymentReceipt) { new PaxService().printPaymentReceipt(paymentReceipt, printerStatusListener, getBaseContext()); }