Skip to content

Commit fe53349

Browse files
Fix crash that occurs when PIN authentication is required (#109)
Signed-off-by: Michael obi <[email protected]>
1 parent 88b0263 commit fe53349

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ ext {
3333

3434
buildToolsVersion = "29.0.2"
3535
supportLibraryVersion = "28.0.0"
36-
versionName = "3.1.1"
36+
versionName = "3.1.2"
3737
}

paystack/src/main/java/co/paystack/android/TransactionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private void handleApiResponse(TransactionApiResponse transactionApiResponse) {
195195
return;
196196
}
197197

198-
if (transactionApiResponse.status.equalsIgnoreCase("2") && transactionApiResponse.auth.equalsIgnoreCase("avs")) {
198+
if (transactionApiResponse.status.equalsIgnoreCase("2") && transactionApiResponse.hasValidAuth() && transactionApiResponse.auth.equalsIgnoreCase("avs")) {
199199
new AddressVerificationAsyncTask().execute(transactionApiResponse.avsCountryCode);
200200
return;
201201
}

0 commit comments

Comments
 (0)