LNbits
LNbits is a free, open-source Bitcoin Lightning wallet and accounts system that serves as a flexible platform for building payment applications. Rather than a managed payment processor, it's a self-hosted layer that sits on top of any Lightning backend like LND, Core Lightning or a hosted node. Out of the box it covers point of sale, payment links, checkout buttons, paywalls and much more. Merchants and developers can run it on their own infrastructure at zero platform cost, with no transaction fees beyond network fees. A hosted SaaS option is also available at lnbits.com for those who don't want to self-host.
API key for payinbtc.me
We assume you already have an LNbits instance running and have some basic knowledge of how to use it.
LNbits Extensions
To use our solution combined with LNbits, you need to install the following extensions:
- SatsPay Server
- Onchain Wallet (if you plan to accept onchain payments)
LNbits setup
After you have installed the plugins above and created a LNbits Wallet for Lightning payments and an Onchain Wallet if you want to accept onchain payments you can continue with the steps below.
- Login to you LNbits instance
- Click on the wallet you want to receive the lightning payments on the left side
- On the right side the wallet is shown. Click on Node URL, API keys and API docs
- Look for Invoice/read key and press the copy icon to copy the key to the clipboard.
- Paste this API key somewhere you can access it later
- Look for Wallet ID and press the copy icon to copy the key to the clipboard.
- Paste this Lightning Wallet ID somewhere you can access it later
If you want to accept we also need the Onchain Wallet ID You can find it as follows
- Click on the Onchain Wallet link in the side menu
- A screen with all onchain wallets is shown, it should look something like this:

- Double click on the value of the ID column, the value is now selected.
- Press CTRL+C so it will be copied to the clipboard
- Paste this Onchain Wallet ID somewhere you can access it later
- Share the generated API keys with us during the activation process