Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 20, 2012 18:54
Show Gist options
  • Save VantivSDK/2139736 to your computer and use it in GitHub Desktop.
Save VantivSDK/2139736 to your computer and use it in GitHub Desktop.
Java SDK - Litle Capture Transaction
import com.litle.sdk.*;
import com.litle.sdk.generate.*;
public class CaptureExample {
public static void main(String[] args) {
Capture capture = new Capture();
//litleTxnId contains the Litle Transaction Id returned on the authorization
capture.setLitleTxnId(100000000000000001L);
CaptureResponse response = new LitleOnline().capture(capture);
//Display Results
System.out.println("Response: " + response.getResponse());
System.out.println("Message: " + response.getMessage());
System.out.println("Litle Transaction ID: " + response.getLitleTxnId());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment