Here you'll find example scripts that you can use to build amazing things on the Kiosk Platform.
You can print 80mm wide receipts using the Printer API.
eflyn.printer
.printHtml({
html: `
<h3>Print Test</h3>
<p>Print real HTML here!</p>
`
});
You can use the paymentService API to accept payments on the pinpad.
eflyn.payment
.approve({
amount: 5.00,
invoice: 'invid'
});
Utilize the barcode service to listen for scan events.
window.addEventListener(
'eflyn:barcode',
(event) =>
alert('Scanned: ' + event.data)
);
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,
});