Check for WebLN first
complete
Moritz Kaminski
If a user has Alby installed you can check for WebLN support first before showing some fallback options (QR codes, copy invoice, etc)
Dillion Verma
complete
Dillion Verma
Hi Moritz. Thanks for your suggestion! We've already implemented WebLN support to micropay. I will make this feedback as done for now but let me know if you have any other concerns.
Moritz Kaminski
Dillion Verma: That´s cool. It works nicely with WebLN. What I meant was to check if WebLN is enabled: if (window.webln) window.webln.sendPayment else show screen as of now.
Then you would not need to show the screen from the image attached if a WebLN provider is detected.