2022-06-15 04:32:46 +02:00
|
|
|
using BTCPayServer.Abstractions.Contracts;
|
|
|
|
using BTCPayServer.Abstractions.Models;
|
|
|
|
using BTCPayServer.Abstractions.Services;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Plugins.PayButton
|
|
|
|
{
|
|
|
|
public class PayButtonPlugin : BaseBTCPayServerPlugin
|
|
|
|
{
|
|
|
|
public override string Identifier => "BTCPayServer.Plugins.PayButton";
|
|
|
|
public override string Name => "Pay Button";
|
|
|
|
public override string Description => "Easily-embeddable HTML button for accepting tips and donations .";
|
|
|
|
|
|
|
|
public override void Execute(IServiceCollection services)
|
|
|
|
{
|
2024-10-07 14:33:53 +02:00
|
|
|
services.AddUIExtension("header-nav", "PayButton/NavExtension");
|
2022-06-15 04:32:46 +02:00
|
|
|
base.Execute(services);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|