We recommend reading the main readme first, to understand the requirements for using the library and how to initiate this in your apps. This guide assumes you've read that.
This describes how to create an otp
List<Medium> mediumList = new ArrayList<>();
mediumList.add(SMS);
ListResponse flwResponse = new OTP().runCreateOTP(new OTPRequest(new Customer(
"Flutterwave Developers",
"[email protected]",
"2348000000000"),
"Flutterwave Inc.",
true,
7,
Optional.of(3),
mediumList));
This describes how to validate an otp
Response flwResponse = new OTP().runValidateOTP(
"CF-BARTER-20221203111843688560",
"6834919");