Class OTP

java.lang.Object
com.flutterwave.services.OTP

public class OTP extends Object
Creating and managing custom-generated OTPs with FLutterwave.
Author:
Cleopatra Douglas
  • Constructor Details

    • OTP

      public OTP()
  • Method Details

    • runCreateOTP

      public ListResponse runCreateOTP(OTPRequest otpRequest)
      Generate an OTP via Flutterwave for any validation.
      Parameters:
      otpRequest - bean
      Returns:
      ListResponse
    • runValidateOTP

      public Response runValidateOTP(String reference, String otp)
      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