@using BTCPayServer.Payments.Lightning @using BTCPayServer.Views.Stores @using BTCPayServer.Abstractions.Extensions @inject BTCPayNetworkProvider BTCPayNetworkProvider @{ var store = Context.GetStoreData(); var isLightningEnabled = store.IsLightningEnabled(BTCPayNetworkProvider); var isLNUrlEnabled = store.IsLNUrlEnabled(BTCPayNetworkProvider); var possible = isLightningEnabled && isLNUrlEnabled && store.GetSupportedPaymentMethods(BTCPayNetworkProvider).OfType().Any(type => type.CryptoCode == "BTC"); } @if (possible) { }