diff options
| author | Adam Soltys <[email protected]> | 2026-09-06 14:26:53 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-06 14:26:53 -0700 |
| commit | 5119fcab671646454c10563c7b79741728d33a03 (patch) | |
| tree | d5e68454a7008eb5949b164e276e6a03b2e6c88c /src/i18n.js | |
| parent | 46e0350a1fb1a549357ce40370bcd9e2520915d4 (diff) | |
| download | coinosv3-5119fcab671646454c10563c7b79741728d33a03.tar.gz coinosv3-5119fcab671646454c10563c7b79741728d33a03.zip | |
LNURL/merchant payments read as PAYMENTS, not zaps, and skip redundant steps. (1) Terminology: a payment is a "zap" only when it targets a nostr person or note (npub / note-zap with an eventId, captured as z.social at begin); paying a lightning address, LNURL or merchant now says "Pay over Lightning" / "Pay" everywhere — amount screen, review title, success screen — even when the endpoint supports zap receipts. (2) A fixed-amount payment (min==max — a POS tag, paywall, bolt card) has nothing to type, so the amount screen is skipped and the flow goes straight to the quote/review; the two perceived confirmations collapse to one. (3) Per-recipient auto-pay budget: the review offers "Auto-pay <merchant> up to N next time" (ctx.lnBudget/setLnBudget in prefs, synced), and a fixed charge within a set budget pays as soon as the quote lands — no tap. Guarded: only fixed amounts, only within the budget, only when funds cover it; over budget / no funds / quote error all fall back to the normal review, and social zaps are untouched. Verified with a driven-feature harness (fake ctx + local LNURL server): fixed skips to startLnPay with social=false/fixedSat set, a covering budget sets autopay, variable still shows the amount screen titled/buttoned "Pay"
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz
Diffstat (limited to 'src/i18n.js')
| -rw-r--r-- | src/i18n.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i18n.js b/src/i18n.js index 0387550..b5db206 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -911,6 +911,7 @@ const STR = { lnPayNetworkFee: 'Network fee', lnPayTotal: 'Total', lnPayConfirm: 'Pay', + lnAutopayOffer: 'Auto-pay {name} up to {n} next time', lnPaySentTitle: 'Lightning payment sent', lnPaySentBody: 'The swap provider pays the invoice once the on-chain lockup confirms.', lnZapTitle: 'Zap over Lightning', |
