This is...
Kiosk Example App 🚀

Here you'll find example scripts that you can use to build amazing things on the Kiosk Platform.

Kiosk Printing

You can print 80mm wide receipts using the Printer API.


eflyn.printer
  .printHtml({
    html: `
<h3>Print Test</h3>
<p>Print real HTML here!</p>
`
  });
        

Take Payments

You can use the paymentService API to accept payments on the pinpad.


eflyn.payment
  .approve({
    amount: 5.00,
    invoice: 'invid'
  });
        

Read Barcodes

Utilize the barcode service to listen for scan events.


window.addEventListener(
  'eflyn:barcode',
  (event) =>
    alert('Scanned: ' + event.data)
);
        

Send Notifications

With Multi-channel notifications you can let users decide how they want to be notified.


eflyn.receipt.submit({
  name: 'Example Notification',
  email: null,
  print: testReceiptHtml,
});