Set up BTCPay Lightning
Set up BTCPay Lightning payments
In addition to bitcoin payments, the BTCPay server also supports Lightning payments. Lightning payments are particularly suitable for very small amounts in the micro- or even nano-cent range.
In order to use Lightning payments for its stores, the operation of its own BTCPay server is required. There is one Lightning Node per BTCPay server. A BTCPay server can generate infinite stores, but Lightning payments these stores flow into the central Lightning wallet of the BTCPay server.
If you run multiple, own stores on one BTCPay server, this is unproblematic.
However, if you use a BTCPay store with a third-party hoster, you will NOT be able to receive Lightning payments in your BTCPay store.
If you want to accept Lightning payments for your website in addition to Bitcoin, run your own BTCPay server. You can learn how to set up and run your own BTCPay server at Coincharge. We are also happy to help with this.
With a BTCPay server, the Lightning implementations LND and c-lightning are available for selection.
Depending on which implementation is chosen, different applications can be implemented.
The applications presented at Coincharge always include the specification of which Lightning implementation is required in each case.
Regardless of whether you choose C-Lightning or LND, the connection to the Lightning Node within the BTCPay server is always the same.
Set up Lightning in BTCPay Shop
This article explains how to set up the Lightning payments option in the Store settings of BTCPay.
- Create a BTCPay Store (see Create BTCPay Store)
- Go to “Store Setting” and then to “General Setting” and scroll down the page until you get to the “Lightning Nodes” item.
Then you click on “Modify
A warning is displayed, informing that Lightning is still in an early stage of development. It cannot be excluded that the Lightning credit may be lost. Therefore, never leave too much balance on the Lightning Wallet.
We scroll down a bit and come to the Connection String area.
The previously empty field will be filled automatically and will look like this:
After that click on “Submit” and the “General Settings” page will be reloaded and the entry under Lightning Nodes will look like this:
To test if everything went correctly, we go to “Modify” again, scroll down to Connection String and click on “Test Connection”.
If everything went right, then we get the following display
You can tell this address to anyone who wants to link to your Lightning Node.
If you scroll down the page again, you will come to the button “Open Public Node Info Page”.
Click on this page and you will get an info page that you are welcome to point your visitors to.
Lightning Node Public Key
You can publish this LN Node Public Key and share it with everyone.
Either as a link:
or as QR code
Or as a pure node address: email@example.com:9735
It contains your Public Lightning Node address (node public key) which you can specify for various services and applications.
Especially when using different LNURL applications, a separate Lightning Node is required. With this LN Node Public Key you can prove that you are running your own Lightning Node.
To use the BTCPay Server you need this LN Node Public Key to receive payments via BTCPay Lightning.
With Lightning just enabled, you can accept Lightning payments in the respective BTCPay store and associated apps.
In order to be able to manage and administer the incoming payments, there are numerous other tools available to you. You can monitor Lightning payments with Ride the Lightning (RTL) or manage your Lightning balance with Lightning Wallets.
These additional Crypto Services can be found in Server Settings under Services: