public override void Install()
        {
            //settings
            var settings = new BPayPaymentSettings
            {
                DescriptionText = "<p>BPay Payment</p><p>P.S. You can edit this text from admin panel.</p>"
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.DescriptionText", "Description");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFee.Hint", "The additional fee.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.ShippableProductRequired", "Shippable product required");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.ShippableProductRequired.Hint", "An option indicating whether shippable products are required in order to display this payment method during checkout.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.BillerCode", "BPay Biller Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.BillerCode.Hint", "Enter Biller Code that will be shown to customers on Order reciept");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.RefNumberBaseOn", "BPay Ref Code (CRN) generate base on.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.RefNumberBaseOn.Hint", "BPay Ref Code (CRN) generate base on OrderNumber or CustomerNumber. Default OrderNumber.");


            base.Install();
        }
 public BPayPaymentProcessor(BPayPaymentSettings bPayPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, IOrderService orderService)
 {
     this._bPayPaymentSettings = bPayPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._orderService = orderService;
 }
 public BPayPaymentProcessor(BPayPaymentSettings bPayPaymentSettings,
                             ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, IOrderService orderService)
 {
     this._bPayPaymentSettings          = bPayPaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._orderService = orderService;
 }
        public override void Install()
        {
            //settings
            var settings = new BPayPaymentSettings
            {
                DescriptionText = "<p>BPay Payment</p><p>P.S. You can edit this text from admin panel.</p>"
            };
            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.DescriptionText", "Description");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFee.Hint", "The additional fee.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.ShippableProductRequired", "Shippable product required");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.ShippableProductRequired.Hint", "An option indicating whether shippable products are required in order to display this payment method during checkout.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.BillerCode", "BPay Biller Code");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.BillerCode.Hint", "Enter Biller Code that will be shown to customers on Order reciept");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.RefNumberBaseOn", "BPay Ref Code (CRN) generate base on.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.BPay.RefNumberBaseOn.Hint", "BPay Ref Code (CRN) generate base on OrderNumber or CustomerNumber. Default OrderNumber.");


            base.Install();
        }