This post is about how Lightning payments appear on the customer’s checkout page. It describes how a Lightning payment via BTCPay works from a merchant’s perspective and how the payment data is presented at Ride the Lightning.
If you have set up a store with Lightning payment via BTCPay, then this is also a guide for you to test a Lightning payment in his own store and see if everything has been set up successfully.
If the Lightning Node has been successfully set up and has sufficient Inbound Liquidity, then Lightning payments can be received via the BTCPay server.
The prerequisite for this is that Bitcoin and/or Lightning is activated under the menu item Derivation Scheme in the General Settings of the Store Settings.
In our example, both Bitcoin and Lightning would be enabled.
The article “Lightning payments with BTCPay” explains how to enable Lightning payments in the store.
In the store settings at Checkout Exprience you can set whether the customer is shown Bitcoin or Lightning as default.
For Bitcoin it is BTC (on-chain) and for Lightning it is BTC (off-chain).
If you offer a product in the microcent range, then it is recommended to use Lightning (BTC off-chain) as the default.
For example, the Voting System application supports Lightning only.
However, since Lightning is not yet so widespread, both variants should always be offered to the customer.
We will demonstrate the process using the example of the page: http://store.coincharge.io/
We buy a mineral water here for 10 cents and head to the checkout. At checkout, we click on “Pay with Bitcoin” and then the payment page or also called checkout page opens.
In the Pay with section, the payer can specify whether to pay with Bitcoin or by Bitcoin (Lightning).
The invoice amount of 10 cents is 1,428 sats.
The checkout page is built in such a way that the customer is shown the Lightning invoice (Bolt 11 invoice) in the form of a QR code.
This view is suitable for making a Lightning payment via a mobile wallet.
You can find an overview of the most important Lightning Wallets, with links to the respective detailed descriptions, at: https://coincharge.io/lightning-wallet/
If you click on Network Node Info, you will get the details of the Lightning node also displayed as a QR code
The network node information is the node ID. In our case the node ID of Coincharge: firstname.lastname@example.org:9735
This information can be helpful if you want to establish a direct channel to the Lightning Node. Then the Lightning payment would be made directly. However, it is also not mandatory. The Lightning payment will find its way that way too.
If you want to pay the bill as an invoice via Ride the Lightning instead of a mobile wallet, click the Copy button located to the right of the Scan field.
In the upper field all the data for an invoice are given. Click on the field and the information will be copied to your clipboard.
The calculation then looks as follows:
To recognize about the beginning lnbc
This bill out of interlayer can be used either on the dashboard under Pay or under Lightning > Transactions under Payments.
Receipt of a Lightning payment
If the payment was successfully executed, then we will receive a feedback about the successful receipt of payment.
In our Ride the Lightning dashboard, the Lightning payment is then displayed as follows.
Under Lightning > Transactions and then in the Lightning Transaction section click on Invoices. All Lightning invoices generated by the system are listed here. The unpaid bills in yellow.
The unpaid bills in yellow.
Detailed information about the transaction can be obtained by clicking View Info.
If you want to know through which channel the Satoshi came, you can find out under Lightning > Peer/Channels. In our case, the payment came in through Yalls.