/// <summary> /// Initializes a new instance of the <see cref = "PayPalDirectPaymentGateway" /> class. /// </summary> /// <param name = "httpTransport">The transport for PayPal communication.</param> /// <param name = "environment">The pay pal environment.</param> public PayPalDirectPaymentGateway(IHttpPostTransport httpTransport, PayPalEnvironment environment) { if (httpTransport == null) throw new ArgumentNullException("httpTransport"); if (environment == null) throw new ArgumentNullException("environment"); this.httpTransport = httpTransport; this.environment = environment; }
/// <summary>Construct a new <see cref="SagePayPaymentGateway" /> that uses the supplied <see cref="IHttpPostTransport" /> to communicate with the remote server.</summary> /// <param name="http">An instance of a class implementing <see cref="IHttpPostTransport"/> to provide HTTP POST capabilities.</param> /// <param name="vendorName">The vendor name used by this SagePay installation.</param> /// <param name="vpsProtocol">The version of the VPS Protocol used by the remote SagePay system.</param> /// <param name="mode"></param> public SagePayPaymentGateway(IHttpPostTransport http, string vendorName, decimal vpsProtocol, GatewayMode mode) { this.http = http; this.mode = mode; this.vendorName = vendorName; this.vpsProtocol = vpsProtocol; }
/// <summary> /// Construct a new instance of the <see cref="DataCashPaymentGateway"/>. /// </summary> /// <param name="http">The Http transport provider for communication with DataCash.</param> /// <param name="client">The client code for your payment gateway, as supplied by DataCash.</param> /// <param name="password">The password for your payment gateway, as supplised by DataCash.</param> /// <param name="gatewayUri">The endpoint URI of the DataCash payment system.</param> public DataCashPaymentGateway(IHttpPostTransport http, string client, string password, string gatewayUri) { this.http = http; this.client = client; this.password = password; this.gatewayUri = gatewayUri; }