Exemplo n.º 1
0
        private const string RETURN_FORMAT = "4"; // XML return format

        #endregion

        #region Ctor

        public UnitellerPaymentProcessor(UnitellerPaymentSettings unitellerPaymentSettings,
                                         ISettingService settingService,
                                         ICurrencyService currencyService,
                                         CurrencySettings currencySettings,
                                         IOrderTotalCalculationService orderTotalCalculationService, IStoreContext storeContext)
        {
            this._unitellerPaymentSettings     = unitellerPaymentSettings;
            this._settingService               = settingService;
            this._currencyService              = currencyService;
            this._currencySettings             = currencySettings;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._storeContext = storeContext;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Install plugin method
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new UnitellerPaymentSettings();

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.ShopIdp", "The Uniteller Point ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.ShopIdp.Hint", "Specify the Uniteller Point ID of your store on the website uniteller.ru.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.Password", "Password");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.Password.Hint", "Set the password.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.Login", "Login");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.Login.Hint", "Set the login.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Uniteller.Fields.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.Payments.Uniteller.Fields.RedirectionTip", "For payment you will be redirected to the website uniteller.ru.");

            base.Install();
        }