SamSamskies / nostr-zap

Zap any Nostr npub or note from anywhere.
MIT License
78 stars 14 forks source link

Add support for webln payments #1

Closed bumi closed 1 year ago

bumi commented 1 year ago

Similar to requesting the zap signatures from the user the payment can be called with window.webln

WebLN is a set of specifications for Lightning apps and client providers to facilitate communication between web apps and users' Lightning nodes in a secure way. It provides a programmatic, permissioned interface for letting applications ask users to send payments, generate invoices to receive payments, and much more.

https://www.webln.guide/

This is a quick example on how it could look like. (edited on GitHub, so handle with care, but I hope it is a start)

SamSamskies commented 1 year ago

thanks. latest version attempts to make payment with webln before showing user the invoice dialog.

bumi commented 1 year ago

whoot nice! great widget! super nice!