public override async Task Install() { var settings = new PayInStorePaymentSettings() { DescriptionText = "<p>Reserve items at your local store, and pay in store when you pick up your order.<br />Our store location: USA, New York,...</p><p>P.S. You can edit this text from admin panel.</p>" }; await _settingService.SaveSetting(settings); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.DescriptionText", "Description"); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.DescriptionText.Hint", "Enter info that will be shown to customers during checkout"); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.PaymentMethodDescription", "Pay In Store"); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.AdditionalFee", "Additional fee"); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.AdditionalFee.Hint", "The additional fee."); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.AdditionalFeePercentage", "Additional fee. Use percentage"); await this.AddOrUpdatePluginLocaleResource(_serviceProvider, "Plugins.Payment.PayInStore.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used."); await base.Install(); }
public override async Task Install() { var settings = new PayInStorePaymentSettings() { DescriptionText = "<p>При самовывозе вы можете оплатить заказ наличными или картой в салоне.</p>" }; await _settingService.SaveSetting(settings); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.DescriptionText", "Description"); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.DescriptionText.Hint", "Enter info that will be shown to customers during checkout"); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.PaymentMethodDescription", "Pay In Store"); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.AdditionalFee", "Additional fee"); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.AdditionalFee.Hint", "The additional fee."); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.AdditionalFeePercentage", "Additional fee. Use percentage"); await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.PayInStore.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used."); await base.Install(); }
public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings, ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService) { this._payInStorePaymentSettings = payInStorePaymentSettings; this._settingService = settingService; this._orderTotalCalculationService = orderTotalCalculationService; }
public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings, ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, ILocalizationService localizationService, IWebHelper webHelper) { this._payInStorePaymentSettings = payInStorePaymentSettings; this._settingService = settingService; this._orderTotalCalculationService = orderTotalCalculationService; this._localizationService = localizationService; this._webHelper = webHelper; }
public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings, ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, ILocalizationService localizationService, IWebHelper webHelper, IServiceProvider serviceProvider) { _payInStorePaymentSettings = payInStorePaymentSettings; _settingService = settingService; _orderTotalCalculationService = orderTotalCalculationService; _localizationService = localizationService; _webHelper = webHelper; _serviceProvider = serviceProvider; }