2023-02-08 07:47:38 +01:00
|
|
|
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 04:07:03 +02:00
|
|
|
|
2023-02-08 07:47:38 +01: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 04:07:03 +02:00
|
|
|
|
2023-02-08 07:47:38 +01:00
|
|
|
public override void Execute(IServiceCollection applicationBuilder)
|
|
|
|
{
|
2024-04-05 17:43:38 +02:00
|
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/CheckoutEnd",
|
|
|
|
"checkout-end"));
|
2023-02-08 07:47:38 +01:00
|
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/LNURLNFCPostContent",
|
2023-04-10 04:07:03 +02:00
|
|
|
"checkout-lightning-post-content"));
|
2024-04-05 17:43:38 +02:00
|
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("NFC/LNURLNFCPostContent",
|
|
|
|
"checkout-bitcoin-post-content"));
|
2023-02-08 07:47:38 +01:00
|
|
|
base.Execute(applicationBuilder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|