btcpayserver/BTCPayServer/Plugins/NFC/NFCPlugin.cs

25 lines
965 B
C#
Raw Normal View History

using BTCPayServer.Abstractions.Contracts;
using BTCPayServer.Abstractions.Models;
using BTCPayServer.Abstractions.Services;
using Microsoft.Extensions.DependencyInjection;
namespace BTCPayServer.Plugins.NFC
{
public class NFCPlugin : BaseBTCPayServerPlugin
{
2023-04-10 11:07:03 +09:00
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!";
2023-04-10 11:07:03 +09:00
public override void Execute(IServiceCollection applicationBuilder)
{
2024-10-07 21:14:37 +09:00
applicationBuilder.AddUIExtension("checkout-end", "NFC/CheckoutEnd");
applicationBuilder.AddUIExtension("checkout-lightning-post-content", "NFC/LNURLNFCPostContent");
applicationBuilder.AddUIExtension("checkout-bitcoin-post-content", "NFC/LNURLNFCPostContent");
base.Execute(applicationBuilder);
}
}
}