/// <summary> /// TODO: Make internal and visible to Moolah.Specs /// </summary> public DataCash3DSecureGateway( DataCash3DSecureConfiguration configuration, IHttpClient httpClient, IDataCashPaymentRequestBuilder paymentRequestBuilder, IDataCashAuthorizeRequestBuilder authorizeRequestBuilder, IDataCash3DSecureResponseParser responseParser) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (httpClient == null) { throw new ArgumentNullException("httpClient"); } if (paymentRequestBuilder == null) { throw new ArgumentNullException("paymentRequestBuilder"); } if (authorizeRequestBuilder == null) { throw new ArgumentNullException("authorizeRequestBuilder"); } if (responseParser == null) { throw new ArgumentNullException("responseParser"); } _configuration = configuration; _httpClient = httpClient; _paymentPaymentRequestBuilder = paymentRequestBuilder; _authorizeRequestBuilder = authorizeRequestBuilder; _responseParser = responseParser; }
public DataCash3DSecureRequestBuilder(DataCash3DSecureConfiguration configuration, HttpRequestBase httpRequest) : base(configuration) { if (httpRequest == null) throw new ArgumentNullException("httpRequest"); _configuration = configuration; _httpRequest = httpRequest; }
public DataCash3DSecureRequestBuilder(DataCash3DSecureConfiguration configuration, string userAgent, string acceptHeader) : base(configuration) { _configuration = configuration; _userAgent = userAgent; _acceptHeader = acceptHeader; SystemTime = new TimeProvider(); }
public DataCash3DSecureRequestBuilder(DataCash3DSecureConfiguration configuration, HttpRequestBase httpRequest) : base(configuration) { if (httpRequest == null) { throw new ArgumentNullException("httpRequest"); } _configuration = configuration; _httpRequest = httpRequest; SystemTime = new TimeProvider(); }
internal DataCash3DSecureGateway( DataCash3DSecureConfiguration configuration, IHttpClient httpClient, IDataCashPaymentRequestBuilder paymentRequestBuilder, IDataCashAuthorizeRequestBuilder authorizeRequestBuilder, IDataCash3DSecureResponseParser responseParser, IRefundGateway refundGateway, ICancelGateway cancelGateway) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (httpClient == null) { throw new ArgumentNullException("httpClient"); } if (paymentRequestBuilder == null) { throw new ArgumentNullException("paymentRequestBuilder"); } if (authorizeRequestBuilder == null) { throw new ArgumentNullException("authorizeRequestBuilder"); } if (responseParser == null) { throw new ArgumentNullException("responseParser"); } if (refundGateway == null) { throw new ArgumentNullException("refundGateway"); } if (cancelGateway == null) { throw new ArgumentNullException("cancelGateway"); } _configuration = configuration; _httpClient = httpClient; _paymentPaymentRequestBuilder = paymentRequestBuilder; _authorizeRequestBuilder = authorizeRequestBuilder; _responseParser = responseParser; _refundGateway = refundGateway; _cancelGateway = cancelGateway; }
/// <summary> /// TODO: Make internal and visible to Moolah.Specs /// </summary> public DataCash3DSecureGateway( DataCash3DSecureConfiguration configuration, IHttpClient httpClient, IDataCashPaymentRequestBuilder paymentRequestBuilder, IDataCashAuthorizeRequestBuilder authorizeRequestBuilder, IDataCash3DSecureResponseParser responseParser) { if (configuration == null) throw new ArgumentNullException("configuration"); if (httpClient == null) throw new ArgumentNullException("httpClient"); if (paymentRequestBuilder == null) throw new ArgumentNullException("paymentRequestBuilder"); if (authorizeRequestBuilder == null) throw new ArgumentNullException("authorizeRequestBuilder"); if (responseParser == null) throw new ArgumentNullException("responseParser"); _configuration = configuration; _httpClient = httpClient; _paymentPaymentRequestBuilder = paymentRequestBuilder; _authorizeRequestBuilder = authorizeRequestBuilder; _responseParser = responseParser; }
public DataCash3DSecureRequestBuilder(DataCash3DSecureConfiguration configuration) : this(configuration, new HttpRequestWrapper(HttpContext.Current.Request)) { }
public DataCash3DSecureGateway(DataCash3DSecureConfiguration configuration) : this(configuration, new HttpClient(), new DataCash3DSecureRequestBuilder(configuration), new DataCash3DSecureAuthorizeRequestBuilder(configuration), new DataCash3DSecureResponseParser()) { }
public DataCash3DSecureGateway(DataCash3DSecureConfiguration configuration, string userAgent, string userAcceptHeader) : this(configuration, new HttpClient(), new DataCash3DSecureRequestBuilder(configuration, userAgent, userAcceptHeader), new DataCash3DSecureAuthorizeRequestBuilder(configuration), new DataCash3DSecureResponseParser(), new RefundGateway(configuration), new CancelGateway(configuration)) { }