Use in an app

import com.ironchip.ironchiplbfraudandroidsdk.LBFraudAndroid;
...

LBFraudAndroid fraud = new LBFraudAndroid(getBaseContext(), "APIKEY");
// In case you desire to target a diferent enviroment:
// LBFraudAndroid fraud = new LBFraudAndroid(getBaseContext(), "APIKEY", host);

String transactionID = "random_identifier_generated"; // Transaction identifier request for fraud results
String userID = "john.doe@gmail.com"; // User identifier

Map<String, Object> extraData = new HashMap<>(); // Extra information for analysis
extraData.put("concept", "Book august");
extraData.put("amount", new Integer(30));
extraData.put("operation", "booking");

// The sendTransaction can be provided with 2 callbacks, one is performed when the transaction is performed
// and receives the traceability ID and the other one is called in case an error did occure.
// In case of not wanting to make use of those callback feel free to use:
// sendTransaction(String transactionID, String userID, Map<String, Object> extraData)
// or
// sendTransaction(String transactionID, String userID, Map<String, Object> extraData, Callback callback)
fraud.sendTransaction(transactionID, userID, extraData, () -> {
        // Perform the required actions
    }, exception -> {
        // Perform required action
        // exception.printStackTrace()
});