agora-org / agora

File server that accepts Lightning Network payments for downloads
Creative Commons Zero v1.0 Universal
185 stars 26 forks source link

Can we integrate WebLN? #296

Open yzernik opened 2 years ago

yzernik commented 2 years ago

On the invoice page, would it be possible to show the invoice using WebLN?

https://webln.dev/#/getting-started

I think that would simplify the experience for users that are using browser extension wallets like Joule and Alby.

casey commented 2 years ago

I'm not sure I understand what WebLN does. Is it different from having a lightning: payment link?

yzernik commented 2 years ago

I'm not too familiar with WebLN, but I think the idea is that it standardizes the interface between:

So when you try to download a file on Agora, your Joule extension would detect the payment request and show a "Pay" button rather than you just see a QR code.

yzernik commented 2 years ago

Another advantage of using WebLN is that you can use the callback on the completed payment to trigger a redirect to the unlocked file.

https://webln.dev/#/api/send-payment