internal static PosResponse DoTransaction(IHpsServicesConfig config, PosRequestVer10Transaction transaction, long?clientTransactionId = null) { var req = new PosRequest { Ver10 = new PosRequestVer10 { Header = new PosRequestVer10Header { SecretAPIKey = config.SecretApiKey, LicenseId = config.LicenseId, SiteId = config.SiteId, DeviceId = config.DeviceId, VersionNbr = config.VersionNumber, UserName = config.UserName, Password = config.Password, DeveloperID = config.DeveloperId, SiteTrace = config.SiteTrace }, Transaction = transaction } }; if (clientTransactionId.HasValue) { req.Ver10.Header.ClientTxnId = clientTransactionId.Value; req.Ver10.Header.ClientTxnIdSpecified = true; } using (var client = new PosGatewayService { Url = HpsConfiguration.SoapServiceUri }) { return(client.DoTransaction(req)); } }
protected HpsRestGatewayService(IHpsServicesConfig config) { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; if (config == null) { return; } _servicesConfig = config; }
protected HpsRestGatewayService(IHpsServicesConfig config) { if (config == null) { return; } _servicesConfig = config; var components = config.SecretApiKey.Split('_'); var env = components[1].ToLower(); if (env.Equals("prod")) { _url = ProdUrl; } else if (env.Equals("cert")) { _url = CertUrl; } else { _url = UatUrl; } }
public HpsDebitService(IHpsServicesConfig config = null) : base(config) { }
/// <summary>Initializes a new instance of the <see cref="HpsAttachmentService"/> class.</summary> /// <param name="config">The HPS services config.</param> public HpsAttachmentService(IHpsServicesConfig config = null) : base(config) { }
public HpsFluentCreditService(IHpsServicesConfig config = null, bool enableLogging = false) : base(config, enableLogging) { }
public HpsFluentGiftCardService withConfig(IHpsServicesConfig config) { this.ServicesConfig = config; return this; }
public HpsPayPlanService(IHpsServicesConfig config) : base(config) { }
public HpsFluentDebitService withConfig(IHpsServicesConfig config) { this.ServicesConfig = config; return(this); }
protected HpsSoapGatewayService(IHpsServicesConfig config = null, bool enableLogging = false) { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; ServicesConfig = config; this.enableLogging = enableLogging; }
/// <summary>Initializes a new instance of the <see cref="HpsBatchService"/> class.</summary> /// <param name="config">The HPS services config.</param> public HpsBatchService(IHpsServicesConfig config = null) : base(config) { }
/// <summary>Initializes a new instance of the <see cref="HpsCreditService"/> class.</summary> /// <param name="config">The HPS services config.</param> public HpsGiftCardService(IHpsServicesConfig config = null) : base(config) { }
protected HpsSoapGatewayService(IHpsServicesConfig config = null, bool enableLogging = false) { ServicesConfig = config; this.enableLogging = enableLogging; }
/// <summary>Initializes a new instance of the <see cref="HpsCheckService"/> class.</summary> /// <param name="config">The HPS services config.</param> public HpsCheckService(IHpsServicesConfig config = null) : base(config) { }
public HpsFluentEbtService(IHpsServicesConfig config, bool enableLogging = false) : base(config, enableLogging) { }
public HpsFluentDebitService(IHpsServicesConfig config, bool enableLogging = false) : base(config, enableLogging) { }
/// <summary>Initializes a new instance of the <see cref="HpsCreditService"/> class.</summary> /// <param name="config">The HPS services config.</param> public HpsCreditService(IHpsServicesConfig config = null) : base(config) { }
public HpsFluentGiftCardService withConfig(IHpsServicesConfig config) { this.ServicesConfig = config; return(this); }
public HpsFluentDebitService withConfig(IHpsServicesConfig config) { this.ServicesConfig = config; return this; }
public HpsFluentCreditService WithConfig(IHpsServicesConfig config) { this.ServicesConfig = config; return this; }
public HpsFluentEbtService WithConfig(IHpsServicesConfig config) { this.ServicesConfig = config; return(this); }