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 CreditExample { | |
public static void main(String[] args) { | |
Credit credit = new Credit(); | |
//litleTxnId contains the Litle Transaction Id returned on the deposit | |
credit.setLitleTxnId(100000000000000001L); | |
CreditResponse response = new LitleOnline().credit(credit); | |
//Display Results |
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 CaptureExample { | |
public static void main(String[] args) { | |
Capture capture = new Capture(); | |
//litleTxnId contains the Litle Transaction Id returned on the authorization | |
capture.setLitleTxnId(100000000000000001L); | |
capture.setAmount(1200); //Capture $12 dollars of a previous authorization | |
CaptureResponse response = new LitleOnline().capture(capture); |
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 CaptureGivenAuthExample { | |
public static void main(String[] args) { | |
CaptureGivenAuth capturegivenauth = new CaptureGivenAuth(); | |
capturegivenauth.setAmount(106L); | |
capturegivenauth.setOrderId("12344"); | |
AuthInformation authInfo = new AuthInformation(); | |
Calendar authDate = Calendar.getInstance(); |
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 EcheckCreditExample { | |
public static void main(String[] args) { | |
EcheckCredit echeckcredit = new EcheckCredit(); | |
//LitleTxnId from an earlier echeck sale | |
echeckcredit.setLitleTxnId(123456789101112L); | |
EcheckCreditResponse response = new LitleOnline().echeckCredit(echeckcredit); |
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 EcheckRedepositExample { | |
public static void main(String[] args) { | |
EcheckRedeposit echeckRedeposit = new EcheckRedeposit(); | |
//LitleTxnId from an earlier echeck sale | |
echeckRedeposit.setLitleTxnId(123456789101112L); | |
EcheckRedepositResponse response = new LitleOnline().echeckRedeposit(echeckRedeposit); |
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 EcheckSaleExample { | |
public static void main(String[] args) { | |
EcheckSale echecksale = new EcheckSale(); | |
echecksale.setAmount(123456L); | |
echecksale.setOrderId("12345"); | |
echecksale.setOrderSource(OrderSourceType.ECOMMERCE); | |
EcheckType echeck = new EcheckType(); |
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(); |
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 RegisterTokenExample { | |
public static void main(String[] args) { | |
RegisterTokenRequestType registerToken = new RegisterTokenRequestType(); | |
registerToken.setOrderId("12344"); | |
registerToken.setAccountNumber("1233456789103801"); | |
RegisterTokenResponse response = litle.registerToken(token); |
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 VoidExample { | |
public static void main(String[] args) { | |
com.litle.sdk.generate.Void theVoid = new com.litle.sdk.generate.Void(); | |
//litleTxnId contains the Litle Transaction Id returned on the deposit | |
theVoid.setLitleTxnId(100000000000000001L); | |
VoidResponse response = new LitleOnline().dovoid(theVoid); | |
//Display Results |
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 AuthReversalExample { | |
public static void main(String[] args) { | |
AuthReversal authReversal = new AuthReversal(); | |
//litleTxnId contains the Litle Transaction Id returned on the auth | |
authReversal.setLitleTxnId(100000000000000001L); | |
AuthReversalResponse response = new LitleOnline().authReversal(authReversal); | |
//Display Results |