login

fun login(email: String, password: String, callback: (Customer?, SdkError?) -> Unit? = null)

Login customer using existing credentials (email and password).

Example:

fun login() {
FlyBuyCore.getInstance().customer.login("test@example.com", "password") { customer, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}
}