Create a gist now

Instantly share code, notes, and snippets.

Java SDK - Litle Credit Transaction
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
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