Repository navigation
v2.2.0 – Bolt Card PIN Limit Support
What's new
Bolt Card PIN Limit (pinLimit)
ZapBox now supports the pinLimit field from the LUD-XX proposal.
When a Bolt Card has a PIN configured and the payment amount reaches the limit, the ZapBox device shows a PIN entry screen. The user enters 4 digits directly on the touch display — no app or phone required.
Flow:
- Bolt Card tapped → server detects
pinLimitin the LNURLW response - ZapBox shows PIN pad (amount + 4-dot indicator + numpad)
- User enters PIN → sent to server → forwarded to Bolt Card server
- Wrong PIN: error shown for 5 seconds, up to 3 attempts
- Card blocked after 3 failures: 10-second message, then back to normal screen
Changes
views_api.py: PIN session handling withasyncio.Event, newPOST /nfc/pin_submitendpoint, retry loop with WS eventspin_required/pin_error
Requirements
- ZapBox firmware ≥
feature/pin-pad-screen(JC3248W535C with touch display) - boltcards extension on
pin-limitbranch