@using BTCPayServer.Services.Invoices @using BTCPayServer.Client.Models @model BTCPayServer.Models.PaymentRequestViewModels.ViewPaymentRequestViewModel @addTagHelper *, BundlerMinifier.TagHelpers @inject BTCPayServer.Services.BTCPayServerEnvironment env @inject BTCPayServer.HostedServices.CssThemeManager themeManager @{ ViewData["Title"] = Model.Title; Layout = null; string StatusTextClass(InvoiceState state) { switch (state.Status.ToModernStatus()) { case InvoiceStatus.Settled: case InvoiceStatus.Processing: return "text-success"; case InvoiceStatus.Expired: switch (state.ExceptionStatus) { case InvoiceExceptionStatus.PaidLate: case InvoiceExceptionStatus.PaidPartial: case InvoiceExceptionStatus.PaidOver: return "text-warning"; default: return "text-danger"; } case InvoiceStatus.Invalid: return "text-danger"; default: return "text-warning"; } } } @Model.Title @if (Model.CustomCSSLink != null) { } @*We need to make sure btcpay.js is not bundled, else it will not work if there is a RootPath*@ @Safe.Raw(Model.EmbeddedCSS)
@await Html.PartialAsync("_StatusMessage", new ViewDataDictionary(ViewData){ { "Margin", "mb-4" } })

Invoice Summary

@if (!string.IsNullOrEmpty(Model.Description) && Model.Description != "
") { @Safe.Raw(Model.Description) }

Payment Details

@Model.AmountDueFormatted
Amount due
@Model.AmountCollectedFormatted
Amount paid
@Model.AmountFormatted
Total requested

Payment History