Skip to content

Fix WebLN top-up in budget modal#22

Merged
tomsmith8 merged 1 commit into
mainfrom
fix/budget-modal-webln-topup
Apr 8, 2026
Merged

Fix WebLN top-up in budget modal#22
tomsmith8 merged 1 commit into
mainfrom
fix/budget-modal-webln-topup

Conversation

@tomsmith8
Copy link
Copy Markdown
Contributor

The handleWebLNTopUp was expecting a 200 response from /buy_lsat with invoice in the body, but the server returns 402 with the invoice in the www-authenticate header. Replace with payL402() which correctly handles the 402 flow: parse header, pay via webln.sendPayment, store L402 token.

The handleWebLNTopUp was expecting a 200 response from /buy_lsat with
invoice in the body, but the server returns 402 with the invoice in the
www-authenticate header. Replace with payL402() which correctly handles
the 402 flow: parse header, pay via webln.sendPayment, store L402 token.
@tomsmith8 tomsmith8 merged commit 0970573 into main Apr 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant