mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Coin switching on no-script invoices
This commit is contained in:
@@ -226,7 +226,7 @@ namespace BTCPayServer.Controllers
|
|||||||
if (model == null)
|
if (model == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
|
|
||||||
return View(nameof(CheckoutNoScript), model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,36 @@
|
|||||||
@if (Model.Status == "new")
|
@if (Model.Status == "new")
|
||||||
{
|
{
|
||||||
<div>
|
<div>
|
||||||
<p>To complete payment, please send <b>@Model.BtcDue @Model.CryptoCode</b> to <b>@Model.BtcAddress</b></p>
|
<p>To complete payment, please send <b>@Model.BtcDue @Model.CryptoCode</b> to <b style="word-break: break-word;">@Model.BtcAddress</b></p>
|
||||||
<p>Time remaining: @Model.TimeLeft</p>
|
<p>Time remaining: @Model.TimeLeft</p>
|
||||||
<p><a href="@Model.InvoiceBitcoinUrl">@Model.InvoiceBitcoinUrl</a></p>
|
<p><a href="@Model.InvoiceBitcoinUrl" style="word-break: break-word;">@Model.InvoiceBitcoinUrl</a></p>
|
||||||
|
@if (Model.IsLightning)
|
||||||
|
{
|
||||||
|
<p>Peer Info: <b>@Model.PeerInfo</b></p>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if (Model.AvailableCryptos.Count > 1)
|
||||||
|
{
|
||||||
|
<div>
|
||||||
|
<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;">
|
||||||
|
<a href="/invoice-noscript?id=@Model.InvoiceId&paymentMethodId=@crypto.PaymentMethodId">
|
||||||
|
<img alt="@crypto.PaymentMethodName" src="@crypto.CryptoImage" style="vertical-align:middle; height:24px; text-decoration:none; margin-top: -3px;" /></a>
|
||||||
|
<a href="/invoice-noscript?id=@Model.InvoiceId&paymentMethodId=@crypto.PaymentMethodId" style="padding-top: 2px;">
|
||||||
|
@crypto.PaymentMethodName
|
||||||
|
@(crypto.IsLightning ? Html.Raw("⚡") : null)
|
||||||
|
(@crypto.CryptoCode)
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (Model.Status == "paid" || Model.Status == "complete" || Model.Status == "confirmed")
|
else if (Model.Status == "paid" || Model.Status == "complete" || Model.Status == "confirmed")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user