@model BTCPayServer.Models.PaymentRequestViewModels.ViewPaymentRequestViewModel
@addTagHelper *, BundlerMinifier.TagHelpers
@inject BTCPayServer.Services.BTCPayServerEnvironment env
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
@{
ViewData["Title"] = Model.Title;
Layout = null;
}
@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)
@Model.Title
Last Updated
@Model.LastUpdated.ToString("g")
Print
Copy Link
@if (Model.IsPending && !Model.Archived && Model.ExpiryDate.HasValue)
{
@Model.Status
}
Expires in {{endDiff}}
@if (Model.IsPending && !Model.Archived)
{
@if (Model.AllowCustomPaymentAmounts && !Model.AnyPendingInvoice)
{
}
else
{
Pay Invoice
if (Model.AnyPendingInvoice && !Model.PendingInvoiceHasPayments)
{
}
}
}
else
{
@Model.Status
@if (Model.Archived)
{
(archived)
}
}
Loading...
Pay Invoice
Loading...
Cancel Invoice
{{srvModel.status}}
(archived)
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
@if (Model.Invoices == null || !Model.Invoices.Any())
{
No payments made yet.
}
else
{
Invoice Id
Price
Expiry
Status
@foreach (var invoice in Model.Invoices)
{
@invoice.Id
@invoice.Amount @invoice.Currency
@invoice.ExpiryDate.ToString("g")
@invoice.Status
if (invoice.Payments != null && invoice.Payments.Any())
{
TX Id
Payment Method
Amount
@foreach (var payment in invoice.Payments)
{
@if (!string.IsNullOrEmpty(payment.Link))
{
@payment.Id
}
else
{
@payment.Id
}
@payment.PaymentMethod
@payment.Amount
}
}
}
}
No payments made yet.
Invoice Id
Price
Expiry
Status
{{invoice.id}}
{{invoice.amountFormatted}}
{{moment(invoice.expiryDate).format('L HH:mm')}}
{{invoice.status}}
TX Id
Payment Method
Amount
{{payment.id}}
{{payment.id}}
{{formatPaymentMethod(payment.paymentMethod)}}
{{payment.amount.noExponents()}}