private void ConfigureCommunication() { _communication.SetHost(Config.Get("host")); string encoded = ChargebackUtils.Encode64( Config.Get("username") + ":" + Config.Get("password"), "utf-8"); _communication.AddToHeader("Authorization", "Basic " + encoded); if (!String.IsNullOrEmpty(Config.Get("proxyHost")) && !String.IsNullOrEmpty(Config.Get("proxyPort"))) { _communication.SetProxy(Config.Get("proxyHost"), int.Parse(Config.Get("proxyPort"))); } _communication.SetContentType(null); }
private void ConfigureCommunication() { _communication.SetHost(Config.Get("host")); var encoded = ChargebackUtils.Encode64(Config.Get("username") + ":" + Config.Get("password"), "utf-8"); _communication.AddToHeader("Authorization", "Basic " + encoded); _communication.SetContentType("application/com.vantivcnp.services-v2+xml"); _communication.SetAccept("application/com.vantivcnp.services-v2+xml"); if (!String.IsNullOrEmpty(Config.Get("proxyHost")) && !String.IsNullOrEmpty(Config.Get("proxyPort"))) { _communication.SetProxy(Config.Get("proxyHost"), int.Parse(Config.Get("proxyPort"))); } }