public eWayPaymentProcessor(ICustomerService customerService, eWayPaymentSettings eWayPaymentSettings, ISettingService settingService, IStoreContext storeContext) { this._customerService = customerService; this._eWayPaymentSettings = eWayPaymentSettings; this._settingService = settingService; this._storeContext = storeContext; }
public eWayPaymentProcessor(ICustomerService customerService, eWayPaymentSettings eWayPaymentSettings, ISettingService settingService, IWebHelper webHelper, ILogger logger) { this._customerService = customerService; this._eWayPaymentSettings = eWayPaymentSettings; this._settingService = settingService; this._webHelper = webHelper; _logger = logger; }
public eWayPaymentProcessor(ICustomerService customerService, eWayPaymentSettings eWayPaymentSettings, ISettingService settingService, IStoreContext storeContext, ILocalizationService localizationService, IWebHelper webHelper) { this._customerService = customerService; this._eWayPaymentSettings = eWayPaymentSettings; this._settingService = settingService; this._storeContext = storeContext; this._localizationService = localizationService; this._webHelper = webHelper; }
/// <summary> /// Install plugin /// </summary> public override void Install() { var settings = new eWayPaymentSettings { UseSandbox = true, CustomerId = string.Empty, AdditionalFee = 0, }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWay.UseSandbox", "Use sandbox"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWay.UseSandbox.Hint", "Use sandbox?"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWay.CustomerId", "Customer ID"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWay.CustomerId.Hint", "Enter customer ID."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWay.AdditionalFee", "Additional fee"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.eWay.AdditionalFee.Hint", "Enter additional fee to charge your customers."); base.Install(); }