Skip to content

Commit 79acce6

Browse files
committed
check if authmodelused contains "otp". If yes, direct user to opt flow
1 parent bbbada8 commit 79acce6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

raveandroid/src/main/java/com/flutterwave/raveandroid/card/CardPresenter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ else if (suggested_auth.equalsIgnoreCase(RaveConstants.NOAUTH_INTERNATIONAL)) {
8989

9090
mView.onVBVAuthModelUsed(authUrlCrude, flwRef);
9191
}
92-
else if (authModelUsed.equalsIgnoreCase(RaveConstants.GTB_OTP) || authModelUsed.equalsIgnoreCase(RaveConstants.ACCESS_OTP)) {
92+
else if (authModelUsed.equalsIgnoreCase(RaveConstants.GTB_OTP)
93+
|| authModelUsed.equalsIgnoreCase(RaveConstants.ACCESS_OTP)
94+
|| authModelUsed.toLowerCase().contains("otp")) {
9395
String flwRef = response.getData().getFlwRef();
9496
String chargeResponseMessage = response.getData().getChargeResponseMessage();
9597
chargeResponseMessage = chargeResponseMessage == null ? "Enter your one time password (OTP)" : chargeResponseMessage;

0 commit comments

Comments
 (0)