Skip to main content

Services

Services are a way for plugins to extend core functionality. While components let you add visual elements, services let you provide implementations for platform capabilities such as payment processing, receipt printing, and barcode scanning.

Registering a service

Services are registered inside your plugin using context.service.addService():

export default async context => {
context.service.addService({
type: 'receiptService',
// ... service-specific properties
});
};

Each service has a type property that identifies the kind of service being registered.

Available services

ServiceTypeDescription
Payment servicepaymentServiceProvides implementation of payment for kiosk card payment
Receipt servicereceiptServiceProvides implementation of receipt printing
Scanner servicescannerServiceProvides implementation of barcode and QR code scanning
Display brightness servicedisplayBrightnessServiceProvides implementation for controlling kiosk display brightness