text link

lightning donations and tips

multiple options to add a quick payment link on your website

the task:

You want to sell a picture, graphic, wallpaper, or photo.

the plan:

Show an image preview of a file and a QR code that users can scan to pay with lightning. The full image should be available for download only after payment.

support the cause

<click here>

LNURL QR code

You can make a text or button link on your website for Bitcoin donations or tips. The link contains information such as the wallet address and the suggested amount. When someone clicks on it, the browser will look to see if you have a Bitcoin wallet installed. If you have more than one wallet it will let you choose. It will then ask you for permission to open the wallet and load the transaction automatically.

For lightning payments, creating a link is not so simple! You cannot not put an html link for a lightning invoice on your website. You need a fresh link for every transaction.

Fortunately there is the LNURL protocol. It can creates a LNURL link for you. You specify the amount (e.g. $2.00), or make it variable. The link never expires. Unfortunately this only works if the sender has a LNURL compatible wallet.

<a href="bitcoin:bc1qjf2p283s
6444paalryz9vdjr0qv4a3pqppjwc8"
>Open Invoice</a>
<a href="lightning:
lnbc100n1pjtgws4pp5x6yykjw34q
cdn6euqstjnqmtdpckxmtswr5xvv5
uk7dltvy0gyqqdqqxqyjw5q9q7sqq
qqqqqqqqqqqqqqqqqqqqqqq9qsqsp
5khap6tw99789cy3e0969cjxp8u9k
zdkl3pjhacf5plzxktm8xq6qrzjqw
ryaup9lh50kkranzgcdnn2fgvx390
wgj5jd07rwr3vxeje0glcllu4egmv
npas5yqqqqlgqqqqqeqqjq03u6te7
v58v0jv0f0nmga3m6wwtgg6x6gyxs
x5tz7aa38jvptuk3yn23ktxcu0xkz
4jtaf8k2w45zu205da4djkt0mcl3g
ljztza7qcpsrevzw">Open Invoice</a>
<a href="https://legend.lnbits.
com/lnurlp/link/4582
">Open Invoice</a>