public SamanPaymentProcessor(SamanPaymentSettings samanPaymentSettings, ISettingService settingService, HttpContextBase httpContext, IWebHelper webHelper) { this._samanPaymentSettings = samanPaymentSettings; this._settingService = settingService; this._httpContext = httpContext; this._webHelper = webHelper; }
public override void Install() { var settings = new SamanPaymentSettings { MerchantId = "merchantId", Passcode = "passcode" }; _settingService.SaveSetting(settings); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Saman.Fields.MerchantId", "Merchant Id"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Saman.Fields.Passcode", "Passcode"); base.Install(); }