btcpayserver/BTCPayServer/Views/UIInvoice/CheckoutNoScript.cshtml
2024-10-07 19:58:08 +09:00

47 lines
1.3 KiB
Text

@model CheckoutModel
@{
Layout = null;
var displayedPaymentMethods = Model.AvailableCryptos.Where(a => a.Displayed).ToList();
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<META NAME="robots" CONTENT="noindex,nofollow">
<title>@Model.HtmlTitle</title>
</head>
<body>
<h1>Pay with @Model.StoreName</h1>
@if (Model.Status == "new")
{
<h1 class="text-danger">This payment method requires javascript.</h1>
}
else if (Model.Status == "paid" || Model.Status == "complete" || Model.Status == "confirmed")
{
<div>
<p>This invoice has been paid</p>
</div>
}
else if (Model.Status == "expired" || Model.Status == "invalid")
{
<div>
<p>This invoice has expired</p>
</div>
}
else
{
<div>
<p>Non-supported state of invoice</p>
</div>
}
<hr />
<p>
<a asp-action="Checkout" asp-route-invoiceId="@Model.InvoiceId">Go back to Javascript enabled invoice</a>
</p>
@await Component.InvokeAsync("UiExtensionPoint", new { location = "checkout-noscript-end", model = Model })
</body>
</html>