/// <summary>
        /// Installs the processor.
        /// </summary>
        public override void Install()
        {
            SamplePaymentServicePaymentSettings settings = new SamplePaymentServicePaymentSettings
            {
                DescriptionText = "<p>Sitecore Commerce Connect sample payment service.</p>"
            };

            this.settingService.SaveSetting <SamplePaymentServicePaymentSettings>(settings, 0);
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.SamplePaymentService.DescriptionText", "Description");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.SamplePaymentService.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.SamplePaymentService.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.SamplePaymentService.AdditionalFee.Hint", "The additional fee.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.SamplePaymentService.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.SamplePaymentService.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            base.Install();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SamplePaymentServicePaymentProcessor"/> class.
 /// </summary>
 /// <param name="paymentSettings">The payment settings.</param>
 /// <param name="settingService">The settings service.</param>
 /// <param name="orderTotalCalculationService">The order total calculation service.</param>
 public SamplePaymentServicePaymentProcessor(SamplePaymentServicePaymentSettings paymentSettings, ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this.paymentSettings = paymentSettings;
     this.settingService  = settingService;
     this.orderTotalCalculationService = orderTotalCalculationService;
 }