Created
March 20, 2012 19:01
-
-
Save VantivSDK/2139863 to your computer and use it in GitHub Desktop.
Java SDK - Litle eCheck Verification Transaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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