@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) {
The invoice has detected a payment but is still waiting to be settled.
} else if (!isSettled) {
The invoice is not settled.
} else {

@DisplayFormatter.Currency(Model.Amount, Model.Currency, DisplayFormatter.CurrencyFormat.Symbol)

@if (Model.Payments?.Any() is true) {

 

Payments

@foreach (var payment in Model.Payments) {

 

@payment.Amount @payment.PaymentMethod

Rate: @payment.RateFormatted

= @payment.PaidFormatted

} } if (Model.AdditionalData?.Any() is true) {

 

Additional Data

} @if (!string.IsNullOrEmpty(Model.OrderId)) {

 

Order ID: @Model.OrderId

} } @if (Model.ReceiptOptions.ShowQR is true) { }