mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 23:49:57 +01:00
24 lines
747 B
C#
24 lines
747 B
C#
using BTCPayServer.Services.Shopify.Models;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace BTCPayServer.Services.Shopify
|
|
{
|
|
public static class ShopifyExtensions
|
|
{
|
|
public static ShopifyApiClientCredentials CreateShopifyApiCredentials(this ShopifySettings shopify)
|
|
{
|
|
return new ShopifyApiClientCredentials
|
|
{
|
|
ShopName = shopify.ShopName,
|
|
ApiKey = shopify.ApiKey,
|
|
ApiPassword = shopify.Password
|
|
};
|
|
}
|
|
|
|
public static void AddShopify(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IHostedService, ShopifyOrderMarkerHostedService>();
|
|
}
|
|
}
|
|
}
|