mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-31 04:34:26 +01:00
* LNURL Payment Method Support * Merge recent Lightning controller related changes * Fix build * Create separate payment settings section for stores * Improve LNURL configuration * Prevent duplicate array entries when merging Swagger JSON * Fix CanSetPaymentMethodLimitsLightning * Fix CanUsePayjoinViaUI * Adapt test for new cancel bolt invoice feature * rebase fixes * Fixes after rebase * Test fixes * Do not turn LNURL on by default, Off-Chain payment criteria should affects both BOLT11 and LNURL, Payment criteria of unset payment method shouldn't be shown * Send better error if payment method not found * Revert "Prevent duplicate array entries when merging Swagger JSON" This reverts commit 5783db9eda17c29908a60fdef2c3ebe130a8b059. * Fix LNUrl doc * Fix some warnings Co-authored-by: Dennis Reimann <mail@dennisreimann.de> Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
@using BTCPayServer.Payments
|
|
@using BTCPayServer.Payments.Lightning
|
|
@model IEnumerable<BTCPayServer.Services.Invoices.PaymentEntity>
|
|
|
|
@{
|
|
var offchainPayments = Model.Where(entity => entity.GetPaymentMethodId()?.PaymentType == LightningPaymentType.Instance || entity.GetPaymentMethodId()?.PaymentType == LNURLPayPaymentType.Instance).Select(payment =>
|
|
{
|
|
var offChainPaymentData = payment.GetCryptoPaymentData() as LightningLikePaymentData;
|
|
if (offChainPaymentData is null)
|
|
{
|
|
return null;
|
|
}
|
|
return new OffChainPaymentViewModel()
|
|
{
|
|
Crypto = payment.Network.CryptoCode,
|
|
BOLT11 = offChainPaymentData.BOLT11,
|
|
Type = payment.GetCryptoPaymentData().GetPaymentType()
|
|
};
|
|
}).Where(model => model != null);
|
|
}
|
|
|
|
|
|
@if (offchainPayments.Any())
|
|
{
|
|
<div class="row">
|
|
<div class="col-md-12 invoice-payments">
|
|
<h3>Off-Chain payments</h3>
|
|
<table class="table table-hover table-responsive-md">
|
|
<thead class="thead-inverse">
|
|
<tr>
|
|
<th class="w-150px">Crypto</th>
|
|
<th class="w-150px">Type</th>
|
|
<th>BOLT11</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var payment in offchainPayments)
|
|
{
|
|
<tr>
|
|
<td>@payment.Crypto</td>
|
|
<td>@payment.Type.ToPrettyString()</td>
|
|
<td><div class="wraptextAuto">@payment.BOLT11</div></td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
}
|