@model BTCPayServer.Models.StoreViewModels.LightningNodeViewModel
@inject BreezSparkService BreezService
@{
var storeId = Model.StoreId;
if (Model.CryptoCode != "BTC")
{
return;
}
// Try to get existing Breez client to extract the payment key
var breezClient = BreezService.GetClient(Model.StoreId);
string paymentKey = "";
if (breezClient != null)
{
// Extract payment key from the existing client connection string
var connStr = breezClient.ToString();
if (connStr.Contains("key="))
{
var keyStart = connStr.IndexOf("key=") + 4;
var keyEnd = connStr.IndexOf(";", keyStart);
if (keyEnd == -1) keyEnd = connStr.Length;
paymentKey = connStr.Substring(keyStart, keyEnd - keyStart);
}
}
}
The connection string above will be automatically filled when you select Breez.
Connects to your Breez mobile wallet.
Connects to a Breez mobile wallet, using the Breez SDK to handle Lightning payments through swaps.
type=breez;key=@paymentKey;storeId=@Model.StoreId
Please configure Breez first to set up your payment key.
You can use Breez to accept lightning payments without running a traditional Lightning node.
Breez is a mobile-first Lightning Network client that provides a non-custodial solution for Lightning payments.