Exemplo n.º 1
0
 public EpagosMercantilPaymentProcessor(ILocalizationService localizationService,
                                        IPaymentService paymentService,
                                        ISettingService settingService,
                                        IWebHelper webHelper,
                                        EpagosMercantilPaymentSettings EpagosMercantilPaymentSettings)
 {
     this._localizationService            = localizationService;
     this._paymentService                 = paymentService;
     this._settingService                 = settingService;
     this._webHelper                      = webHelper;
     this._epagosMercantilPaymentSettings = EpagosMercantilPaymentSettings;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new EpagosMercantilPaymentSettings
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Instructions", "This payment method stores credit card information in database (it's not sent to any third-party processor). In order to store credit card information, you must be PCI compliant.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Fields.TransactMode", "After checkout mark payment as");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.Fields.TransactMode.Hint", "Specify transaction mode.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.EpagosMercantil.PaymentMethodDescription", "Pagos en Bolívares por tarjetas de débito/crédito");

            base.Install();
        }