@model BTCPayServer.Models.InvoicingModels.InvoiceReceiptViewModel @using BTCPayServer.Client.Models @using BTCPayServer.Components.QRCode @using BTCPayServer.Services @using Microsoft.AspNetCore.Mvc.TagHelpers @using BTCPayServer.Abstractions.TagHelpers @inject DisplayFormatter DisplayFormatter @{ Layout = null; ViewData["Title"] = $"Receipt from {Model.StoreName}"; var isProcessing = Model.Status == InvoiceStatus.Processing; var isSettled = Model.Status == InvoiceStatus.Settled; }
@Model.StoreName
@Model.Timestamp.ToBrowserDate()
@if (isProcessing) {
Payments
@foreach (var payment in Model.Payments) {
@payment.Amount @payment.PaymentMethod
Rate: @payment.RateFormatted
= @payment.PaidFormatted
} } if (Model.AdditionalData?.Any() is true) {
Additional Data
Order ID: @Model.OrderId
} } @if (Model.ReceiptOptions.ShowQR is true) {