public override void Install() { //settings var settings = new GBSPaymentSettings { UseSandbox = true, UseSavedCards = true, TransactMode = TransactMode.Authorize, //TransactionKey = "123", LoginId = "" }; _settingService.SaveSetting(settings); //locales //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Notes", "If you're using this gateway, ensure that your primary store currency is supported by Authorize.NET."); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.UseSandbox", "Use Sandbox"); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment)."); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactModeValues", "Transaction mode"); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactModeValues.Hint", "Choose transaction mode."); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactionKey", "Transaction key"); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactionKey.Hint", "Specify transaction key."); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.LoginId", "Login ID"); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.LoginId.Hint", "Specify login identifier."); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFee", "Additional fee"); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers."); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFeePercentage", "Additional fee. Use percentage"); //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.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(); }
public GBSPaymentGateway(ISettingService settingService, ICurrencyService currencyService, ICustomerService customerService, IWebHelper webHelper, IOrderTotalCalculationService orderTotalCalculationService, IEncryptionService encryptionService, CurrencySettings currencySettings, GBSPaymentSettings gbsPaymentSettings, ILocalizationService localizationService, ILogger logger) { this._gbsPaymentSettings = gbsPaymentSettings; this._settingService = settingService; this._currencyService = currencyService; this._customerService = customerService; this._currencySettings = currencySettings; this._webHelper = webHelper; this._orderTotalCalculationService = orderTotalCalculationService; this._encryptionService = encryptionService; this._localizationService = localizationService; this._logger = logger; }