Package com.flutterwave.services
Class OTP
java.lang.Object
com.flutterwave.services.OTP
Creating and managing custom-generated OTPs with FLutterwave.
- Author:
- Cleopatra Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrunCreateOTP(OTPRequest otpRequest) Generate an OTP via Flutterwave for any validation.runValidateOTP(String reference, String otp) OTPs generated by the /create endpoint.
-
Constructor Details
-
OTP
public OTP()
-
-
Method Details
-
runCreateOTP
Generate an OTP via Flutterwave for any validation.- Parameters:
otpRequest- bean- Returns:
- ListResponse
-
runValidateOTP
OTPs generated by the /create endpoint.- Parameters:
reference- String This is the reference that was returned in the create OTP response.otp- String This is the One time Pin sent to the user. You are meant to collect this from the user for validation.- Returns:
- Response
-