Esempio n. 1
0
        public override async Task Install()
        {
            //settings
            var settings = new CheckMoneyOrderPaymentSettings
            {
                DescriptionText = "<p>Mail Personal or Business Check, Cashier's Check or money order to:</p><p><br /><b>GRANDNODE</b> <br /><b>your address here,</b> <br /><b>New York, NY 10001 </b> <br /><b>USA</b></p><p>Notice that if you pay by Personal or Business Check, your order may be held for up to 10 days after we receive your check to allow enough time for the check to clear.  If you want us to ship faster upon receipt of your payment, then we recommend your send a money order or Cashier's check.</p><p>P.S. You can edit this text from admin panel.</p>"
            };
            await _settingService.SaveSetting(settings);

            //locales
            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.DescriptionText", "Description");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.PaymentMethodDescription", "Pay by check or money order");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFee", "Additional fee");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFee.Hint", "The additional fee.");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFeePercentage", "Additional fee. Use percentage");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.ShippableProductRequired", "Shippable product required");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.ShippableProductRequired.Hint", "An option indicating whether shippable products are required in order to display this payment method during checkout.");


            await base.Install();
        }
Esempio n. 2
0
        public override async Task Install()
        {
            //settings
            var settings = new CheckMoneyOrderPaymentSettings
            {
                DescriptionText = "<p>При оплате онлайн с вами свяжется менеджер!</p> <p>Пожалуйста проверьте верно ли указан номер телефона для связи с вами!</p>"
            };
            await _settingService.SaveSetting(settings);

            //locales
            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.DescriptionText", "Description");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.PaymentMethodDescription", "Pay by check or money order");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFee", "Additional fee");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFee.Hint", "The additional fee.");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFeePercentage", "Additional fee. Use percentage");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.ShippableProductRequired", "Shippable product required");

            await this.AddOrUpdatePluginLocaleResource(_localizationService, _languageService, "Plugins.Payment.CheckMoneyOrder.ShippableProductRequired.Hint", "An option indicating whether shippable products are required in order to display this payment method during checkout.");


            await base.Install();
        }
 public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
                                        ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
Esempio n. 4
0
 public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
                                        ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService,
                                        ILocalizationService localizationService, IWebHelper webHelper)
 {
     this._checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
     this._webHelper = webHelper;
 }
Esempio n. 5
0
 public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
                                        ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService,
                                        ILocalizationService localizationService, IWebHelper webHelper, ILanguageService languageService)
 {
     _checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
     _settingService = settingService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _localizationService          = localizationService;
     _webHelper       = webHelper;
     _languageService = languageService;
 }