Add manual Lightning invoice top-up to budget modal#26
Merged
Conversation
898646c to
63cfb67
Compare
Redesign budget modal from single screen to multi-step flow: - Step 1: Balance display with single Top Up button - Step 2: Preset amount tiles (50/100/500/1000) + custom input - Step 3: QR code invoice with copy button and balance polling Sphinx users skip to payment directly. WebLN users pick amount then pay via extension. Manual users (L402 but no wallet) get QR invoice flow via /top_up_lsat with 5-minute polling timeout. Adds qrcode.react, topUpLsat/topUpConfirm API functions, and plan doc for future no-wallet invoice flow via /buy_lsat.
63cfb67 to
be24760
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users with an existing L402 can now top up by generating a Lightning invoice, copying it, and paying from any wallet. Polls /balance every 3s until payment is detected, then confirms via /top_up_confirm.
Only shown when an L402 already exists in localStorage — users without one still need Sphinx or WebLN for the initial token.