Skip to content

Commit

Permalink
Fix crash that occurs when PIN authentication is required (#109)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael obi <[email protected]>
  • Loading branch information
michael-paystack authored Jul 14, 2020
1 parent 88b0263 commit fe53349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ ext {

buildToolsVersion = "29.0.2"
supportLibraryVersion = "28.0.0"
versionName = "3.1.1"
versionName = "3.1.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private void handleApiResponse(TransactionApiResponse transactionApiResponse) {
return;
}

if (transactionApiResponse.status.equalsIgnoreCase("2") && transactionApiResponse.auth.equalsIgnoreCase("avs")) {
if (transactionApiResponse.status.equalsIgnoreCase("2") && transactionApiResponse.hasValidAuth() && transactionApiResponse.auth.equalsIgnoreCase("avs")) {
new AddressVerificationAsyncTask().execute(transactionApiResponse.avsCountryCode);
return;
}
Expand Down

0 comments on commit fe53349

Please sign in to comment.