From ae85dc0afba70f40b333cf03c64abbbf4c8dfea0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 5 Sep 2026 19:38:10 -0700 Subject: Point of sale: a coinos-pos terminal works against a name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Registrar: the owner mints a bearer POS token from Settings (NIP-98 POST /pos/token, DELETE revokes; /admin/pos/token for operators). With it the terminal gets /pos/me, rings up sales at /pos/invoice (fiat via coinos.io rates, or sats), reads /pos/payments, and holds a websocket at /pos/ws that gets a payment message when the sale settles. Sales are always minted on our node so the settle loop sees them and the ordinary forward path delivers the sats to the name's ark address. The name's lnurlp pins the newest unpaid sale under five minutes old — coinos.io's /p/ rule — so an NFC tap or a scan pays exactly that invoice. Wallet: a "Point of sale" section on the names card creates, copies and revokes tokens. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01VMi2Y1oKPZ3TeeFmLej47y --- src/i18n.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/i18n.js') diff --git a/src/i18n.js b/src/i18n.js index 1885d88..1b74c00 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -732,6 +732,12 @@ const STR = { receiveNameTab: 'Spending', namesCustom: 'Change username', namesCustomHow: 'Pick a new name for your payment address. Your old address stops working.', + namesPos: 'Point of sale', + namesPosHow: 'A coinos POS terminal takes payments to this address. Create a token and enter it as the API token when you flash the terminal at coinos.io/pos. The terminal can ring up sales and see them paid; it can never spend.', + namesPosCreate: 'Create POS token', + namesPosCopy: 'Copy token', + namesPosRevoke: 'Revoke tokens', + namesPosRevoked: 'POS tokens revoked', namesDesc: 'Claim your payment address — like you@coinos.io. People can pay you just by typing it, no codes to copy or QR to scan.', namesPlaceholder: 'username', namesResolving: 'Looking up {name}…', -- cgit v1.2.3