@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
@Model.Status
Settled
Request Expired
Expires in {{endDiff}}
{{srvModel.status}}
@if (Model.Archived)
{
Archived
}
else if (Model.IsPending && !Model.Archived)
{
@if (Model.AllowCustomPaymentAmounts && !Model.AnyPendingInvoice)
{
}
else
{
Pay Invoice
if (Model.AnyPendingInvoice && !Model.PendingInvoiceHasPayments)
{
}
}
}
Archived
Loading...
Pay Invoice
Loading...
Cancel Invoice
Invoice Summary
@if (!string.IsNullOrEmpty(Model.Description) && Model.Description != " ")
{
@Safe.Raw(Model.Description)
}
Payment Details
Request amount:
@Model.AmountFormatted
Paid so far:
@Model.AmountCollectedFormatted
Amount due:
@Model.AmountDueFormatted
Payment History
Invoice Id
Price
Expiry
Status
@if (Model.Invoices == null || !Model.Invoices.Any())
{
No payments made yet
}
else
{
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}}
{{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()}}