public DibsPaymentProcesser(HttpContextBase httpContext, IWebHelper webHelper, ISettingService settingService, DibsPaymentSettings dibsPaymentSettings) { _httpContext = httpContext; _webHelper = webHelper; _settingService = settingService; _dibsPaymentSettings = dibsPaymentSettings; }
public override void Install() { //settings var settings = new DibsPaymentSettings { UseSandbox = true, DibsWinFlexUrl = "https://payment.architrade.com/paymentweb/start.action" }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Dibs.Fields.RedirectionTip", "Du vil blive sendt videre til dibs betalingsvindue for at færdiggøre din ordre."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Dibs.Fields.UseSandbox", "Brug test mode"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Dibs.Fields.MerchantId", "Merchant id"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Dibs.Fields.Md5Secret", "Md5 secret"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Dibs.Fields.Md5Secret2", "Md5 secret 2"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Dibs.Fields.DibsWinFlexUrl", "Dibs win flex url"); base.Install(); }