@using System.Globalization @using BTCPayServer.Controllers @using BTCPayServer.Services.Altcoins.Monero.Payments @using BTCPayServer.Services.Altcoins.Monero.UI @model IEnumerable @{ var onchainPayments = Model.Where(entity => entity.GetPaymentMethodId().PaymentType == MoneroPaymentType.Instance).Select(payment => { var m = new MoneroPaymentViewModel(); var onChainPaymentData = payment.GetCryptoPaymentData() as MoneroLikePaymentData; m.Crypto = payment.GetPaymentMethodId().CryptoCode; m.DepositAddress = onChainPaymentData.GetDestination(); var confirmationCount = onChainPaymentData.ConfirmationCount; var network = payment.Network as MoneroLikeSpecificBtcPayNetwork; if (confirmationCount >= network.MaxTrackedConfirmation) { m.Confirmations = "At least " + (network.MaxTrackedConfirmation); } else { m.Confirmations = confirmationCount.ToString(CultureInfo.InvariantCulture); } m.TransactionId = onChainPaymentData.TransactionId; m.ReceivedTime = payment.ReceivedTime; m.TransactionLink = string.Format(CultureInfo.InvariantCulture, payment.Network.BlockExplorerLink, m.TransactionId); return m; }); } @if (onchainPayments.Any()) {

Monero payments

@foreach (var payment in onchainPayments) { }
Crypto Deposit address Transaction Id Confirmations
@payment.Crypto @payment.DepositAddress @payment.Confirmations
}