add voucher poc

This commit is contained in:
Kukks
2023-11-21 12:26:48 +01:00
parent 04c57ddf4a
commit 32c5ee14f5
11 changed files with 725 additions and 100 deletions

View File

@@ -0,0 +1,22 @@
using BTCPayServer.Abstractions.Contracts;
using BTCPayServer.Abstractions.Models;
using BTCPayServer.Abstractions.Services;
using Microsoft.Extensions.DependencyInjection;
namespace BTCPayServer.Plugins.Vouchers
{
public class VoucherPlugin : BaseBTCPayServerPlugin
{
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
{
new() {Identifier = nameof(BTCPayServer), Condition = ">=1.11.0"}
};
public override void Execute(IServiceCollection applicationBuilder)
{
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("VoucherNav",
"store-integrations-nav"));
base.Execute(applicationBuilder);
}
}
}