Exemplo n.º 1
0
 public SkrillPaymentProcessor(SkrillPaymentSettings skrillPaymentSettings,
                               ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService,
                               IStoreContext storeContext, IWebHelper webHelper,
                               ICurrencyService currencyService, CurrencySettings currencySettings)
 {
     this._skrillPaymentSettings        = skrillPaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._storeContext     = storeContext;
     this._webHelper        = webHelper;
     this._currencyService  = currencyService;
     this._currencySettings = currencySettings;
 }
Exemplo n.º 2
0
        public override void Install()
        {
            //settings
            var settings = new SkrillPaymentSettings
            {
                PayToEmail = "*****@*****.**",
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.RedirectionTip", "You will be redirected to Skrill site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.PayToEmail", "Pay to email");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.PayToEmail.Hint", "Pay to email.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.SecretWord", "Secret word");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.SecretWord.Hint", "Secret word.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Skrill.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");

            base.Install();
        }