@using BTCPayServer.Payments @using BTCPayServer.Payments.Lightning @model IEnumerable @{ var offchainPayments = Model.Where(entity => entity.GetPaymentMethodId()?.PaymentType == LightningPaymentType.Instance).Select(payment => { var offChainPaymentData = payment.GetCryptoPaymentData() as LightningLikePaymentData; if (offChainPaymentData is null) { return null; } return new OffChainPaymentViewModel() { Crypto = payment.Network.CryptoCode, BOLT11 = offChainPaymentData.BOLT11 }; }).Where(model => model != null); } @if (offchainPayments.Any()) {

Off-Chain payments

@foreach (var payment in offchainPayments) { }
Crypto BOLT11
@payment.Crypto
@payment.BOLT11
}