File tree Expand file tree Collapse file tree
paystack/src/main/java/co/paystack/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ public void onTick(long millisUntilFinished) {
195195 new AuthAsyncTask ().execute ();
196196 return ;
197197 }
198- if (transactionApiResponse .hasValidAuth () && (transactionApiResponse .auth .equalsIgnoreCase ("PIN " ) || transactionApiResponse .auth .equalsIgnoreCase ("phone" )) && transactionApiResponse .hasValidOtpMessage ()) {
198+ if (transactionApiResponse .hasValidAuth () && (transactionApiResponse .auth .equalsIgnoreCase ("otp " ) || transactionApiResponse .auth .equalsIgnoreCase ("phone" )) && transactionApiResponse .hasValidOtpMessage ()) {
199199 transactionCallback .beforeValidate (transaction );
200200 validateRequestBody .setTrans (transaction .getId ());
201201 osi .setOtpMessage (transactionApiResponse .otpmessage );
Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ public static abstract class CardType {
530530 static final String PATTERN_DINERS_CLUB = "^3(?:0[0-5]|[68][0-9])[0-9]{4,}$" ;
531531 static final String PATTERN_DISCOVER = "^6(?:011|5[0-9]{2})[0-9]{3,}$" ;
532532 static final String PATTERN_JCB = "^(?:2131|1800|35[0-9]{3})[0-9]{3,}$" ;
533- static final String PATTERN_VERVE = "^506[0-9]{6 ,}$" ;
533+ static final String PATTERN_VERVE = "^(( 506(0|1))|(507(8|9))|(6500)) [0-9]{12 ,}$" ;
534534
535535 public abstract boolean matches (String card );
536536
You can’t perform that action at this time.
0 commit comments