A minimal C# example for making a RIS call using the .NET SDK.
Perform the following:
- Add the Kount.NET library to your project.
- Create a Kount.Ris.Inquiry Object and populate the setters.
- Add cart data.
- Ask for the responder (Inquiry.getResponse()).
- Process the Kount.Ris.Response object returned.
Kount.Ris.Inquiry inq = new Kount.Ris.Inquiry();
inq.SetTotal(5000);
inq.SetPayment("CARD", "5789372819873789");
inq.SetIpAddress("165.53.125.33");
inq.SetMack('Y');
inq.SetEmail("joe@domain.com");
inq.SetMode('Q');
inq.SetSessionId("vdt8796tbhbvhe786hret87645643");
inq.SetWebsite("DEFAULT");
ArrayList cart = new ArrayList();
cart.Add(new Kount.Ris.CartItem("Electronics", "TV","Big TV", 1, 24900));
inq.SetCart (cart);
Kount.Ris.Response response = inq.GetResponse();
Console.WriteLine("RESPONSE: " + response.ToString());