/// <summary> /// Install plugin method /// </summary> public override void Install() { //settings var settings = new FondyPaymentSettings(); _settingService.SaveSetting(settings); //locales _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.MerchantId", "Merchant ID"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.MerchantId.Hint", "Specify the Fondy Merchan ID of your store on the website Fondy.ru."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.SecretKey", "Payment key"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.SecretKey.Hint", "Set the payment."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.TestingMode", "Test mode"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.TestingMode.Hint", "Check to enable test mode. Will be used test merchant"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.DescriptionTamplate", "Order description template"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.DescriptionTamplate.Hint", "Template text transmitted in the description on the website. There should not be empty. $orderId - Order number."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.AdditionalFee", "Additional fee"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.AdditionalFeePercentage", "Additional fee. Use percentage"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.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.Fondy.Fields.RedirectionTip", "For payment you will be redirected to the FONDY checkout page."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Fondy.Fields.PaymentMethodDescription", "For payment you will be redirected to the FONDY checkout page."); base.Install(); }
public FondyPaymentProcessor(ICurrencyService currencyService, ILocalizationService localizationService, IPaymentService paymentService, ISettingService settingService, IWebHelper webHelper, CurrencySettings currencySettings, FondyPaymentSettings fondyPaymentSettings) { this._currencyService = currencyService; this._localizationService = localizationService; this._paymentService = paymentService; this._settingService = settingService; this._webHelper = webHelper; this._currencySettings = currencySettings; this._fondyPaymentSettings = fondyPaymentSettings; }