@using BTCPayServer.Client.Models @model (InvoiceDetailsModel Invoice, bool ShowAddress) @{ var invoice = Model.Invoice; } @inject PaymentMethodHandlerDictionary PaymentMethodHandlerDictionary

Invoice Summary

@if (Model.ShowAddress) { } @if (invoice.StatusException == InvoiceExceptionStatus.PaidOver) { } @foreach (var payment in invoice.CryptoPayments) { @if (Model.ShowAddress) { } @if (invoice.StatusException == InvoiceExceptionStatus.PaidOver) { } var details = payment.PaymentMethodRaw.GetPaymentMethodDetails(); var name = details.GetAdditionalDataPartialName(); if (!string.IsNullOrEmpty(name)) { } }
Payment methodAddressRate Paid DueOverpaid
@payment.PaymentMethod @payment.Address @payment.Rate @payment.Paid @payment.Due@payment.Overpaid
@{ var grouped = invoice.Payments.GroupBy(payment => payment.GetPaymentMethodId()?.PaymentType).Where(entities => entities.Key!= null); } @foreach (var paymentGroup in grouped) { }