@using BTCPayServer.Payments.Lightning @inject BTCPayNetworkProvider BTCPayNetworkProvider @{ var store = Context.GetStoreData(); var cryptoCode = "BTC"; var isLightningEnabled = store.IsLightningEnabled(BTCPayNetworkProvider); var isLNUrlEnabled = store.IsLNUrlEnabled(BTCPayNetworkProvider); var possible = isLightningEnabled && isLNUrlEnabled && store.GetSupportedPaymentMethods(BTCPayNetworkProvider).OfType().Any(type => type.CryptoCode == cryptoCode); }
  • Lightning Address @if (possible) { Setup } else { if (!isLightningEnabled) { You need to setup Lightning first } else { You need LNURL configured first } }