using Nop.Core.Domain.Customers; using Nop.Services.Payments; using Nop.Services.Plugins; namespace Mango.Sandbox.EndPoints.Services; public class NullPaymentPluginManager : IPaymentPluginManager { public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0) => Task.FromResult(null); public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0) => Task.FromResult>(new List()); public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0, int filterByCountryId = 0) => Task.FromResult>(new List()); public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0) => Task.FromResult>(new List()); public bool IsPluginActive(IPaymentMethod plugin, List systemNames) => false; public bool IsPluginActive(IPaymentMethod plugin) => false; public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0) => Task.FromResult(false); public Task GetPluginLogoUrlAsync(IPaymentMethod plugin) => Task.FromResult(string.Empty); public Task> GetRestrictedCountryIdsAsync(IPaymentMethod paymentMethod) => Task.FromResult>(new List()); public Task SaveRestrictedCountriesAsync(IPaymentMethod paymentMethod, IList countryIds) => Task.CompletedTask; }