NiziPOS Simulator
Disconnected FW — Heartbeat offConnection Initialize() / DeInitialize()
Not connected.
Firmware OTA and MAC read go through esptool.exe in the C# library, so they aren't available here.
Payment RequestDeviceToStartAcceptingPayment()
No payment in progress.
Token from devicetype: —
Result to show on the device:
Device commands
Backend for Fonepay (production)
Your Fonepay merchant secret must stay on a server, so this page never calls Fonepay directly. It calls your own endpoints. A Frappe {"message": …} wrapper is unwrapped automatically. If the page is opened from a file or another host, the endpoints need CORS.
Request and response shapes
QR endpoint
request {"amount": 10, "prn": "SIM-…"}
response {"qr": "<dynamic QR string>"} (qrMessage also accepted)
Verify endpoint
request {"amount": 10, "prn": "SIM-…", "token": "<payload.data>", "type": "<payload.type>"}
response {"status": "PAYMENT_SUCCESS" | "PAYMENT_INITIATED" | "PAYMENT_FAILED",
"message": "optional text"}
Any other status is treated as unknown. Nothing is shown on the device, and you pick the result by hand.