mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
28 lines
1.1 KiB
C#
28 lines
1.1 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/LNURLNFCPostContent",
|
|
"checkout-bitcoin-post-content"));
|
|
base.Execute(applicationBuilder);
|
|
}
|
|
}
|
|
}
|