public void ObtainSSOKey() { var ssoRequestData = new SSORequestData() { ReferrerURL = "https://www.globalpaymentsinc.com/", IPAddress = "40.81.11.219", IPSubnetMask = "255.255.255.0" }; var response = _service.ObtainSSOKey() .WithAccountNumber("718134204") .WithSSORequestData(ssoRequestData) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); Assert.IsNotNull(response.PayFacData.AuthToken); }
private void HydrateSSORequestData(ElementTree xml, Element xmlTrans, SSORequestData ssoRequestData) { xml.SubElement(xmlTrans, "ReferrerUrl", ssoRequestData.ReferrerURL); xml.SubElement(xmlTrans, "IpAddress", ssoRequestData.IPAddress); xml.SubElement(xmlTrans, "IpSubnetMask", ssoRequestData.IPSubnetMask); }
public PayFacBuilder WithSSORequestData(SSORequestData ssoRequestData) { SSORequestData = ssoRequestData; return(this); }