public PayFlowProPaymentService(IConfirmationNumberGenerator ConfirmationNumberGenerator) { _confirmationNumberGenerator = ConfirmationNumberGenerator; Host = ConfigurationManager.AppSettings["PayFlowPro.Host"]; Port = int.Parse(string.IsNullOrEmpty(ConfigurationManager.AppSettings["PayFlowPro.Port"]) ? "443" : ConfigurationManager.AppSettings["PayFlowPro.Port"]); Timeout = int.Parse(string.IsNullOrEmpty(ConfigurationManager.AppSettings["PayFlowPro.Timeout"]) ? "30" : ConfigurationManager.AppSettings["PayFlowPro.Timeout"]); User = ConfigurationManager.AppSettings["PayFlowPro.User"]; Vendor = ConfigurationManager.AppSettings["PayFlowPro.Vendor"]; Partner = ConfigurationManager.AppSettings["PayFlowPro.Partner"]; Password = ConfigurationManager.AppSettings["PayFlowPro.Password"]; Verbosity = ConfigurationManager.AppSettings["PayFlowPro.Verbosity"]; }
public TeleCheckPaymentService(IConfirmationNumberGenerator ConfirmationNumberGenerator) { _confirmationNumberGenerator = ConfirmationNumberGenerator; Host = ConfigurationManager.AppSettings["TeleCheck.Host"]; Port = int.Parse(String.IsNullOrWhiteSpace(ConfigurationManager.AppSettings["TeleCheck.Port"]) ? "443": ConfigurationManager.AppSettings["TeleCheck.Port"]); Timeout = int.Parse(String.IsNullOrWhiteSpace(ConfigurationManager.AppSettings["TeleCheck.Timeout"]) ? "30" : ConfigurationManager.AppSettings["TeleCheck.Timeout"]); User = ConfigurationManager.AppSettings["TeleCheck.User"]; Vendor = ConfigurationManager.AppSettings["TeleCheck.Vendor"]; Partner = ConfigurationManager.AppSettings["TeleCheck.Partner"]; Password = ConfigurationManager.AppSettings["TeleCheck.Password"]; Verbosity = ConfigurationManager.AppSettings["TeleCheck.Verbosity"]; }
public PayflowNetAPICreditCardPaymentService(IConfirmationNumberGenerator ConfirmationNumberGenerator) { _confirmationNumberGenerator = ConfirmationNumberGenerator; Host = ConfigurationManager.AppSettings["PayflowNetAPI.Host"]; Port = int.Parse(string.IsNullOrEmpty(ConfigurationManager.AppSettings["PayflowNetAPI.Port"]) ? "443" : ConfigurationManager.AppSettings["PayflowNetAPI.Port"]); Timeout = int.Parse(string.IsNullOrEmpty(ConfigurationManager.AppSettings["PayflowNetAPI.Timeout"]) ? "30" : ConfigurationManager.AppSettings["PayflowNetAPI.Timeout"]); User = ConfigurationManager.AppSettings["PayflowNetAPI.User"]; Vendor = ConfigurationManager.AppSettings["PayflowNetAPI.Vendor"]; Partner = ConfigurationManager.AppSettings["PayflowNetAPI.Partner"]; Password = ConfigurationManager.AppSettings["PayflowNetAPI.Password"]; bool.TryParse(ConfigurationManager.AppSettings["PayflowNetAPI.LogFailure"], out bool logOnFail); LogFailures = logOnFail; TelemetryClient = new Microsoft.ApplicationInsights.TelemetryClient(); }