STORY
Adding LN Tipping Support to Personal Bitcoin Tip Card: LnurlPay and WebLN Methods
AUTHOR
Joined 2022.06.19
DATE
VOTES
sats
COMMENTS

Adding LN Tipping Support to Personal Bitcoin Tip Card: LnurlPay and WebLN Methods

A couple of weeks ago, I developed a project called Personal Bitcoin Tip Card using Flutter Web and BTCPay API. While everything seemed to be running smoothly, I received some comments on my Stacker News post that provided helpful feedback and questions.

One commenter asked:

"
The question is: if this is for tips (aka small amounts), why have to be onchain (for f**k sake!). BTCpay also support LN invoices, why not use that API?

Geeze guys, stop building payment solutions for onchain.
Onchain will be exclusively for opening / closing LN channels. All other payments will be only through LN.

You have been warned.
"

While I completely understand their point of view, but I'm quite bullish on developing innovative on-chain solutions at that time. Nevertheless, I took the suggestion and worked on adding LN support to the Personal Bitcoin Tip Card.

And I'm excited to announce that I've completed the implementation of LN tips in the project 🚀! The LN support is based on LnurlPay and WebLN methods, making it super easy for users to receive LN tips. All they need to do is update the "lud16" field in their identity.json file here with their Bitcoin Lightning Address. The Personal Bitcoin Tip Card will then create LN invoices to accept LN tips with ease.

Personal Bitcoin Tip Card

Personal Bitcoin Tip Card

If you're unfamiliar with the Personal Bitcoin Tip Card project, I suggest you check out this blog post: "Developing Personal Bitcoin Tip Card with Flutter Web and BTCPay API: Intro". And if you're excited to set up your own Personal Bitcoin Tip Card, I've also created a setup guide in this blog post: "Developing Personal Bitcoin Tip Card with Flutter Web and BTCPay API: Setup".

I hope the Personal Bitcoin Tip Card project is helpful for you. Thanks for taking the time to read my blog post!

Github: https://github.com/aniketambore/personal-bitcoin-tip-card
Project Demo: https://aniketambore.github.io