@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); } } }

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.