public override void Install() { var settings = new GarantiPaymentSettings() { }; _settingService.SaveSetting(settings); base.Install(); }
public GarantiPaymentProcessor(GarantiPaymentSettings garantiPaymentSettings, ISettingService settingService, ICurrencyService currencyService, CurrencySettings currencySettings, IWebHelper webHelper, StoreInformationSettings storeInformationSettings, ICustomerService customerService, ILocalizationService localizationService, IWorkContext workContext) { this._GarantiPaymentSettings = garantiPaymentSettings; this._settingService = settingService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._webHelper = webHelper; this._storeInformationSettings = storeInformationSettings; this._customerService = customerService; this._localizationService = localizationService; this._workContext = workContext; }