/// <summary> /// Install plugin method /// </summary> public override void Install() { //settings var settings = new PlatronPaymentSettings(); _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.MerchantId", "The Platron Merchan ID"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.MerchantId.Hint", "Specify the Platron Merchan ID of your store on the website Platron.ru."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.SecretKey", "Secret key"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.SecretKey.Hint", "Set the secret key."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.TestingMode", "Test mode"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.TestingMode.Hint", "Check to enable test mode."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.DescriptionTamplate", "Order description template"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.DescriptionTamplate.Hint", "Template text transmitted in the description on the website. There should not be empty. $orderId - Order number."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.AdditionalFee", "Additional fee"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.AdditionalFeePercentage", "Additional fee. Use percentage"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Platron.Fields.RedirectionTip", "For payment you will be redirected to the website Platron.ru."); base.Install(); }