Integration modes
There are four integration modes, defined by where the application runs and how calls are routed:
| Mode | Name | Application runs | Call path | Availability |
|---|---|---|---|---|
| 1 | Standalone + order binding | Anywhere, or none | The terminal completes the transaction on its own UI; the merchant system binds the order afterwards | Available |
| 2 | Cloud-driven | Anywhere (server, web app) | Merchant system → Kuvex server → named terminal | Available |
| 3 | On-terminal, local bridge | Terminal WebView | Page → local JS bridge → Runtime; non-payment operations via the Kuvex server | Authorized applications only; sandbox available, live not yet available |
| 4 | On-terminal, via cloud | Terminal WebView | Page → Kuvex server → this terminal | Available |
In every mode, funds are submitted to the acquirer by the certified payment module on the terminal; the Kuvex server keeps the transaction record and orchestrates commands.
Mode 1: Standalone + order binding
The terminal completes the transaction on its built-in cashier UI; the merchant system binds the order reference afterwards. No integration is needed at the time of payment.
- Call List payments filtered by
terminal_idto find the transaction. - Call Bind an external order reference.
curl -s "https://api.kuvex.com/v1/payments?terminal_id=KV100023&limit=5" \
-H "Authorization: Bearer $KUVEX_SECRET_KEY"
curl -s -X POST https://api.kuvex.com/v1/payments/pay_.../bind \
-H "Authorization: Bearer $KUVEX_SECRET_KEY" -H "Content-Type: application/json" \
-d '{"external_ref": "ORDER-1042", "note": "table 12"}'Binding also sets the payment's order_id if empty, so it can be searched by order reference.
Mode 2: Cloud-driven
Your server, or an application running anywhere, calls Create a payment with a terminal_id; that terminal takes the card. Works on every terminal model with no development on the device. Walkthrough: Quickstart.
Mode 3: On-terminal, local bridge
An authorized terminal application calls Runtime directly through the local JS bridge. Transaction recovery happens locally on the terminal; other operations such as refunds require a connection to the Kuvex server and explicit grants. API: Local JS SDK; example: sandbox lab.
Mode 4: On-terminal, via cloud
The application runs in Kuvex Runtime's WebView on the terminal. Runtime injects a session scoped to this terminal:
window.addEventListener('kuvex-terminal-ready', () => {
const t = window.KuvexTerminal;
// use t.token as a Bearer token; it can access this terminal only
});window.KuvexTerminal fields:
| Field | Type | Description |
|---|---|---|
ready | boolean | Session ready |
terminalId | String | This terminal's ID |
token | String | Token scoped to this terminal, used as Authorization: Bearer |
livemode | boolean | Terminal mode |
theme | String | Terminal theme |
model | String | Device model |
Call the same endpoints as mode 2 with this token and terminal_id = KuvexTerminal.terminalId; the token cannot access other terminals. Register and publish the application in the Dashboard under Applications or through the Applications API.
Companion mode and customer display
Companion mode (based on mode 2): the store's register system (store host) drives the Kuvex terminal next to it, pushing the cart while ringing up, creating the payment with the same order_id and reading the result. The store host never holds a secret key; it is paired with the terminal once (confirmed by a manager on the terminal) and then uses short-lived host tokens. Flow and example: Companion mode.
Customer display: how the cart is rendered on the terminal: natively by the terminal (native, default), a Kuvex-hosted page with the merchant's logo and colors (kuvex_hosted), or the merchant's web page (isv_web). See Customer display.
Exit control
While a terminal application runs, a screen corner keeps an exit back to Kuvex: a visible badge in standalone mode, a hidden exit in companion mode (6 taps on the corner, then manager authentication; Runtime 294 and later accept managers only, earlier versions also accept a staff password). The exit never interrupts a transaction in progress. Style it with the application's chrome parameter; values, defaults and the CSS variables for avoiding the badge are in Exit control.