2019-03-31 13:46:38 -05:00
|
|
|
@model PaymentModel
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
<!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>
|
2019-04-04 21:48:52 -05:00
|
|
|
<h1>Pay with @Model.StoreName</h1>
|
|
|
|
@if (Model.Status == "new")
|
|
|
|
{
|
2019-08-25 15:50:11 +02:00
|
|
|
if (!string.IsNullOrEmpty(Model.UISettings?.NoScriptPartialName))
|
|
|
|
{
|
|
|
|
<partial model="@Model" name="@Model.UISettings.NoScriptPartialName"/>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-08-27 04:31:15 +02:00
|
|
|
<h1 class="text-danger">This payment method requires javascript.</h1>
|
2019-08-25 15:50:11 +02:00
|
|
|
}
|
2019-04-04 21:48:52 -05:00
|
|
|
@if (Model.AvailableCryptos.Count > 1)
|
2019-03-31 13:46:38 -05:00
|
|
|
{
|
|
|
|
<div>
|
2019-04-04 21:48:52 -05:00
|
|
|
<hr />
|
|
|
|
<h2>Pay with:</h2>
|
|
|
|
<ul style="list-style-type: none;padding-left: 5px;">
|
|
|
|
@foreach (var crypto in Model.AvailableCryptos)
|
|
|
|
{
|
|
|
|
<li style="height: 32px; line-height: 32px;">
|
2020-11-08 00:39:10 -08:00
|
|
|
<a asp-action="CheckoutNoScript" asp-route-invoiceId="@Model.InvoiceId" asp-route-paymentMethodId="@crypto.PaymentMethodId">
|
|
|
|
<img alt="@crypto.PaymentMethodName" src="@crypto.CryptoImage" style="vertical-align:middle; height:24px; text-decoration:none; margin-top: -3px;" asp-append-version="true" />
|
|
|
|
</a>
|
|
|
|
<a asp-action="CheckoutNoScript" asp-route-invoiceId="@Model.InvoiceId" asp-route-paymentMethodId="@crypto.PaymentMethodId" style="padding-top: 2px;">
|
2019-04-04 21:48:52 -05:00
|
|
|
@crypto.PaymentMethodName
|
|
|
|
@(crypto.IsLightning ? Html.Raw("⚡") : null)
|
|
|
|
(@crypto.CryptoCode)
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
}
|
|
|
|
</ul>
|
2019-03-31 13:46:38 -05:00
|
|
|
</div>
|
|
|
|
}
|
2019-04-04 21:48:52 -05:00
|
|
|
}
|
|
|
|
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>
|
|
|
|
}
|
2019-03-31 13:46:38 -05:00
|
|
|
|
2019-04-04 21:48:52 -05:00
|
|
|
<hr />
|
|
|
|
<p>
|
2020-11-08 00:39:10 -08:00
|
|
|
<a asp-action="Checkout" asp-route-invoiceId="@Model.InvoiceId">Go back to Javascript enabled invoice</a>
|
2019-04-04 21:48:52 -05:00
|
|
|
</p>
|
2019-03-31 13:46:38 -05:00
|
|
|
</body>
|
|
|
|
</html>
|