2021-04-08 06:37:05 +02:00
|
|
|
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<IHostedService, ShopifyOrderMarkerHostedService>();
|
2021-12-31 08:36:38 +01:00
|
|
|
applicationBuilder.AddSingleton<IUIExtension>(new UIExtension("Shopify/StoreIntegrationsList",
|
2021-04-08 06:37:05 +02:00
|
|
|
"store-integrations-list"));
|
|
|
|
base.Execute(applicationBuilder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|