User Guide: Plugin Marketplace & In-App Dev Studio
This guide explains how store owners and managers can browse, install, and configure add-on plugins from the Plugin Marketplace, as well as how developers can create and test custom store automations using the Plugin Dev Studio.
Table of Contents
- What Are Plugins?
- Browsing & Installing Plugins in the Marketplace
- Managing Installed Plugins & Settings
- Using the Plugin Dev Studio (For Store Coders & Integrators)
- Testing Hooks in the Sandbox Console
- Publishing Plugins to Your Outlets
1. What Are Plugins?
Plugins extend the POS and ERP system with new integrations and automations without modifying core application code:
- Food Aggregator Sync: Zomato, Swiggy, UberEats, Talabat auto-order ingestion.
- Messaging & Notifications: WhatsApp invoice dispatch, SMS balance alerts, Telegram daily sales summaries.
- Hardware Integration: Custom weighing scales, barcode laser verifiers, smart cash drawers.
- Custom Business Rules: VIP loyalty multipliers, dynamic happy hour pricing, special tax calculation routines.
2. Browsing & Installing Plugins in the Marketplace
- Navigate to Settings$\rightarrow$ Plugin Marketplace (
plugin_marketplace_screen.dart). - Filter plugins by category:
- All Plugins
- Payment & Finance
- Kitchen & Restaurant
- Customer Loyalty & CRM
- Inventory & Supply Chain
- E-Commerce & Delivery Aggregators
- Browse the paginated catalog. Each plugin card displays:
- Plugin Name & Icon
- Author & Verified Developer Badge
- Version Number
- Description & Permission Scope
- Click Install Plugin:
- The system checks module prerequisites.
- If required, enter external API keys or credentials.
- The plugin becomes active immediately without needing an app restart.
3. Managing Installed Plugins & Settings
- In the Installed Pluginstab:
- View all active plugins for your branch.
- Toggle Enabled / Disabledwith one click.
- Click Configureto edit webhook URLs or notification phone numbers.
- Click Uninstallto safely remove a plugin.
4. Using the Plugin Dev Studio (For Store Coders & Integrators)
If you have custom requirements (e.g. sending a custom webhook to an internal ERP or triggering an LED alert when a large order arrives), you can build your own plugin directly inside the POS app:
- Open Settings$\rightarrow$ Developer Ecosystem$\rightarrow$ Plugin Dev Studio (
plugin_dev_studio_screen.dart). - Fill in the metadata:
- Plugin ID: e.g.,
plg_custom_warehouse_alert - Plugin Name: Warehouse High-Value Order Webhook
- Version:
1.0.0 - Category: Custom Automation
- Language: Select TypeScriptor JavaScript.
- Plugin ID: e.g.,
- Use the integrated code editor to write hook handlers.
Example Plugin Code:
export default {
async onInit(context: any) {
context.logger.info("Custom plugin loaded for outlet: " + context.outletId);
return { ready: true };
},
async onSaleComplete(context: any, payload: any) {
if (payload.total_amount > 5000) {
context.logger.info("High-value sale detected: " + payload.invoice_no);
// Trigger custom notification or external webhook
}
return { success: true };
}
};
5. Testing Hooks in the Sandbox Console
Before deploying code to live cashier terminals, test it safely in the Test Sandbox Console:
- Select the Target Hook:
onInit,onPaymentCreate,onSaleComplete,onKotCreated. - Edit the Test JSON Payload:
{
"amount": 250,
"currency": "USD",
"receipt": "INV-10023"
} - Click Execute Sandbox Hook.
- Review the live output window:
- Execution duration (e.g.,
12 ms). - Console logs and output variables.
- Structured JSON response (
SUCCESSor error stack trace).
- Execution duration (e.g.,
6. Publishing Plugins to Your Outlets
- When testing passes, toggle Make Public for All Outlets (if you want all branches in your chain to use it) or restrict it to the current outlet.
- Click Deploy Plugin to Marketplace.
- Cashiers and branch managers can now install your custom plugin from their Marketplace screen.