Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 925 Bytes

OTP.md

File metadata and controls

37 lines (27 loc) · 925 Bytes

OTPS

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.

Create Otp

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));

Validate Otp

This describes how to validate an otp

Response flwResponse = new OTP().runValidateOTP(
        "CF-BARTER-20221203111843688560", 
        "6834919");