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
| Service | Type | Description |
|---|---|---|
| Payment service | paymentService | Provides implementation of payment for kiosk card payment |
| Receipt service | receiptService | Provides implementation of receipt printing |
| Scanner service | scannerService | Provides implementation of barcode and QR code scanning |
| Display brightness service | displayBrightnessService | Provides implementation for controlling kiosk display brightness |