Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 20, 2012 19:01
Show Gist options
  • Save VantivSDK/2139863 to your computer and use it in GitHub Desktop.
Save VantivSDK/2139863 to your computer and use it in GitHub Desktop.
Java SDK - Litle eCheck Verification Transaction
import com.litle.sdk.*;
import com.litle.sdk.generate.*;
public class EcheckVerificationExample {
public static void main(String[] args) {
EcheckVerification echeckverification = new EcheckVerification();
echeckverification.setAmount(123456L);
echeckverification.setOrderId("12345");
echeckverification.setOrderSource(OrderSourceType.ECOMMERCE);
EcheckType echeck = new EcheckType();
echeck.setAccType(EcheckAccountTypeEnum.CHECKING);
echeck.setAccNum("12345657890");
echeck.setRoutingNum("123456789");
echeck.setCheckNum("123455");
echeckverification.setEcheck(echeck);
Contact contact = new Contact();
contact.setName("Bob");
contact.setCity("lowell");
contact.setState("MA");
contact.setEmail("litle.com");
echeckverification.setBillToAddress(contact);
EcheckVerificationResponse response = new LitleOnline().echeckVerification(echeckVerification);
//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