btcpayserver/BTCPayServer/Plugins/Shopify/ShopifyPlugin.cs

24 lines
994 B
C#
Raw Normal View History

using BTCPayServer.Abstractions.Contracts;
using BTCPayServer.Abstractions.Models;
using BTCPayServer.Abstractions.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace BTCPayServer.Plugins.Shopify
{
public class ShopifyPlugin : BaseBTCPayServerPlugin
{
public override string Identifier => "BTCPayServer.Plugins.Shopify";
public override string Name => "Shopify";
public override string Description => "Allows you to integrate BTCPay Server as a payment option in Shopify.";
public override void Execute(IServiceCollection applicationBuilder)
{
applicationBuilder.AddSingleton<ShopifyService>();
applicationBuilder.AddSingleton<IHostedService, ShopifyService>(provider => provider.GetRequiredService<ShopifyService>());
2024-10-07 21:33:53 +09:00
applicationBuilder.AddUIExtension("header-nav", "Shopify/NavExtension");
base.Execute(applicationBuilder);
}
}
}