File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
raveandroid/src/main/java/com/flutterwave/raveandroid Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ public class RaveConstants {
1616 public static String LIVE_URL = "https://raveapi.azurewebsites.net" ;
1717 public static String VBV = "VBVSECURECODE" ;
1818 public static String GTB_OTP = "GTB_OTP" ;
19+ public static String ACCESS_OTP = "ACCESS_OTP" ;
1920 public static String NOAUTH = "NOAUTH" ;
2021 public static String PIN = "PIN" ;
2122 public static String AVS_VBVSECURECODE = "AVS_VBVSECURECODE" ;
Original file line number Diff line number Diff 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 )) {
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 ;
You can’t perform that action at this time.
0 commit comments