Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created April 13, 2012 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VantivSDK/2378036 to your computer and use it in GitHub Desktop.
Save VantivSDK/2378036 to your computer and use it in GitHub Desktop.
.NET SDK - Litle Capture Given Auth Transaction
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Litle.Sdk;
//Capture Given Auth Transaction
class Example
{
[STAThread]
public static void Main(String[] args)
{
LitleOnline litle = new LitleOnline();
captureGivenAuth capturegivenauth = new captureGivenAuth();
capturegivenauth.amount = 106;
capturegivenauth.orderId = "12344";
authInformation authInfo = new authInformation();
DateTime authDate = new DateTime(2002, 10, 9);
authInfo.authDate = authDate;
authInfo.authCode = 543216;
authInfo.authAmount = 12345;
capturegivenauth.authInformation = authInfo;
capturegivenauth.orderSource = orderSourceType.ecommerce;
cardType card = new cardType();
card.type = methodOfPaymentTypeEnum.VI;
card.number = "4100000000000001";
card.expDate = "1210";
capturegivenauth.card = card;
captureGivenAuthResponse response = litle.CaptureGivenAuth(capturegivenauth);
//Display Results
Console.WriteLine("Response: " + response.response);
Console.WriteLine("Message: " + response.message);
Console.WriteLine("Litle Transaction Id: " + response.litleTxnId);
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment