Flutterwave / AndroidSDK

Rave's Android Drop In UI
7 stars 8 forks source link

How do I check if the user card detail is correct? #240

Closed chuksdsilent closed 3 years ago

chuksdsilent commented 3 years ago

I integrated ravenonuimanager in my android app. I want to know how to check if the user card details is correct before sending them otp.

jeremiahAI commented 3 years ago

You can use the Utils.isValidLuhnNumber() helper function to validate that the format of the card number is an acceptable format. However, this doesn't mean that the card is a valid card.

Rest assured, however, that the OTP will only be sent after we have validated the card number on our end.