@using BTCPayServer.Client.Models @model BTCPayServer.Plugins.LSP.LSPController.LSPConnectPage @inject ContentSecurityPolicies contentSecurityPolicies @using BTCPayServer.Security @using NBitcoin @{ var nonce = RandomUtils.GetUInt256().ToString().Substring(0, 32); contentSecurityPolicies.Add("script-src", $"'nonce-{nonce}'"); contentSecurityPolicies.AllowUnsafeHashes(); Layout = "_LayoutSimple"; var reloadPage = false; }

Thank you!

@if (Model.Status == InvoiceStatus.Processing) { reloadPage = true;
The invoice has detected a payment but is still waiting to be settled. This page will refresh periodically until it is settled.
} else if (Model.Status != InvoiceStatus.Settled) {
The invoice is not settled.
} else { Model.Invoice.Metadata.TryGetValue("inbound", out var inbound);
@await Component.InvokeAsync("QRCode", new {data = Model.LNURL.ToUpperInvariant()})

Scan this QR with your wallet to proceed with opening the channel.

Open in wallet

Opening a channel of at least @inbound.ToString() sats.

}
Powered by BTCPay Server
@if (reloadPage) { }