public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings, ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService) { this._payInStorePaymentSettings = payInStorePaymentSettings; this._settingService = settingService; this._orderTotalCalculationService = orderTotalCalculationService; }
public PayInStorePaymentProcessor(ILocalizationService localizationService, IPaymentService paymentService, ISettingService settingService, IWebHelper webHelper, PayInStorePaymentSettings payInStorePaymentSettings) { this._localizationService = localizationService; this._paymentService = paymentService; this._settingService = settingService; this._webHelper = webHelper; this._payInStorePaymentSettings = payInStorePaymentSettings; }
public override void 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>" }; _settingService.SaveSetting(settings); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.DescriptionText", "Description"); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.DescriptionText.Hint", "Enter info that will be shown to customers during checkout"); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.AdditionalFee", "Additional fee"); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.AdditionalFee.Hint", "The additional fee."); base.Install(); }
public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings, ISettingService settingService) { this._payInStorePaymentSettings = payInStorePaymentSettings; this._settingService = settingService; }
public PayInStorePaymentProcessor(PayInStorePaymentSettings payInStorePaymentSettings, ISettingService settingService) { this._payInStorePaymentSettings = payInStorePaymentSettings; this._settingService = settingService; }
public override void 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>" }; _settingService.SaveSetting(settings); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.DescriptionText", "Description"); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.DescriptionText.Hint", "Enter info that will be shown to customers during checkout"); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.AdditionalFee", "Additional fee"); this.AddOrUpdatePluginLocaleResource("Plugins.Payment.PayInStore.AdditionalFee.Hint", "The additional fee."); base.Install(); }