mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
* Make NFC built int * support checkout v2 * uninstall old plugin * fix lnurl in unified checkout * fix tests * fix tests * fix old checkout unified qr * clean up and make nfc submission more sturdy * support topup invoices for lnurlw * fix test * Payment URI fixes * Fix LNURL exclusion cases * UI updates * Adapt test --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
32 lines
1.4 KiB
C#
32 lines
1.4 KiB
C#
using BTCPayServer.Abstractions.Contracts;
|
|
using BTCPayServer.Abstractions.Models;
|
|
using BTCPayServer.Abstractions.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace BTCPayServer.Plugins.NFC
|
|
{
|
|
public class NFCPlugin : BaseBTCPayServerPlugin
|
|
{
|
|
|
|
public override string Identifier => "BTCPayServer.Plugins.NFC";
|
|
public override string Name => "NFC";
|
|
public override string Description => "Allows you to support contactless card payments over NFC and LNURL Withdraw!";
|
|
|
|
|
|
public override void Execute(IServiceCollection applicationBuilder)
|
|
{
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/CheckoutEnd",
|
|
"checkout-end"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/LNURLNFCPostContent",
|
|
"checkout-lightning-post-content"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/CheckoutEnd",
|
|
"checkout-v2-end"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/LNURLNFCPostContent",
|
|
"checkout-v2-lightning-post-content"));
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/LNURLNFCPostContent",
|
|
"checkout-v2-bitcoin-post-content"));
|
|
base.Execute(applicationBuilder);
|
|
}
|
|
}
|
|
}
|