mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 23:54:26 +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.RockstarStylist
|
|
{
|
|
public class RockstarStylistPlugin : BaseBTCPayServerPlugin
|
|
{
|
|
public override string Identifier { get; } = "BTCPayServer.Plugins.RockstarStylist";
|
|
public override string Name { get; } = "Rockstar hairstylist";
|
|
public override string Description { get; } = "Allows your checkout to get a rockstar approved makeover";
|
|
|
|
public override void Execute(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IUIExtension>(new UIExtension("InvoiceCheckoutThemeOptions",
|
|
"invoice-checkout-theme-options"));
|
|
services.AddSingleton<RockstarStyleProvider>();
|
|
}
|
|
|
|
|
|
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
|
{
|
|
new IBTCPayServerPlugin.PluginDependency() { Identifier = nameof(BTCPayServer), Condition = ">=1.4.6.0" }
|
|
};
|
|
}
|
|
}
|