/// <summary> /// For testing /// </summary> internal void DeactivateProvider(GatewayProviderBase provider) { if (!provider.Activated) { return; } _gatewayProviderService.Delete(provider.GatewayProviderSettings); GatewayProviderResolver.Current.RefreshCache(); }
/// <summary> /// For testing /// </summary> internal void DeactivateProvider(GatewayProviderBase provider) { if (!provider.Activated) return; _gatewayProviderService.Delete(provider.GatewayProviderSettings); GatewayProviderResolver.Current.RefreshCache(); }
/// <summary> /// Deactivates a <see cref="IGatewayProviderSettings"/> /// </summary> /// <param name="provider">The GatewayProvider to be deactivated</param> public void DeactivateProvider(GatewayProviderBase provider) { DeactivateProvider(provider.GatewayProviderSettings); }