@model BTCPayServer.Models.InvoicingModels.InvoiceReceiptViewModel @using BTCPayServer.Client @using BTCPayServer.Client.Models @using BTCPayServer.Services.Rates @inject BTCPayServer.Services.BTCPayServerEnvironment Env @inject BTCPayServer.Services.ThemeSettings Theme @inject CurrencyNameTable CurrencyNameTable @{ Layout = null; ViewData["Title"] = $"Receipt from {Model.StoreName}"; var isProcessing = Model.Status == InvoiceStatus.Processing; var isSettled = Model.Status == InvoiceStatus.Settled; } @if (isProcessing) { }
@if (isProcessing) {
The invoice has detected a payment but is still waiting to be settled.
} else if (!isSettled) {
The invoice is not settled.
} else { if (Model.ReceiptOptions.ShowQR is true) {
}
Amount Paid
@CurrencyNameTable.DisplayFormatCurrency(Model.Amount, Model.Currency)
Date
@Model.Timestamp.ToBrowserDate()
@if (!string.IsNullOrEmpty(Model.OrderId)) {
Order ID
@if (!string.IsNullOrEmpty(Model.OrderUrl)) { @if (string.IsNullOrEmpty(Model.OrderId)) { View Order } else { @Model.OrderId } } else { @Model.OrderId }
}
}
@if (isProcessing) { This page will refresh periodically until the invoice is settled. } else if (isSettled) { if (Model.Payments?.Any() is true) {

Payment Details

@foreach (var payment in Model.Payments) { }
Destination Received Paid Rate Payment
@payment.Destination @payment.ReceivedDate.ToString("g") @payment.PaidFormatted @payment.RateFormatted @payment.Amount @payment.PaymentMethod
Transaction Id: @if (!string.IsNullOrEmpty(payment.Link)) { @payment.Id } else { @payment.Id }
} if (Model.AdditionalData?.Any() is true) {

Additional Data

} }