Exemplo n.º 1
0
        public override void Install()
        {
            var settings = new eWayHostedPaymentSettings()
            {
                CustomerId    = "87654321",
                Username      = "******",
                PaymentPage   = "https://payment.ewaygateway.com/",
                AdditionalFee = 0
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.RedirectionTip", "You will be redirected to eWay site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.CustomerId", "Customer ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.CustomerId.Hint", "Enter customer ID.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.Username", "Username");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.Username.Hint", "Enter username.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.PaymentPage", "Payment page");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.PaymentPage.Hint", "Enter payment page.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWayHosted.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

            base.Install();
        }
Exemplo n.º 2
0
 public eWayHostedPaymentProcessor(eWayHostedPaymentSettings eWayHostedPaymentSettings,
                                   ISettingService settingService, ICurrencyService currencyService,
                                   CurrencySettings currencySettings, IWebHelper webHelper)
 {
     this._eWayHostedPaymentSettings = eWayHostedPaymentSettings;
     this._settingService            = settingService;
     this._currencyService           = currencyService;
     this._currencySettings          = currencySettings;
     this._webHelper = webHelper;
 }