From aaf4d949de99471bbc57733f9b1f00dc68b25ec1 Mon Sep 17 00:00:00 2001 From: Hines Vaughan Date: Fri, 18 May 2018 10:27:03 -0500 Subject: [PATCH] fix suppressConfirmation bug on Android #63 accept RESULT_CONFIRMATION_SUPPRESSED as success result --- src/android/CardIOCordovaPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/CardIOCordovaPlugin.java b/src/android/CardIOCordovaPlugin.java index 0623f42..ca4f67e 100644 --- a/src/android/CardIOCordovaPlugin.java +++ b/src/android/CardIOCordovaPlugin.java @@ -89,7 +89,7 @@ private void canScan(JSONArray args) throws JSONException { // onActivityResult public void onActivityResult(int requestCode, int resultCode, Intent intent) { if (REQUEST_CARD_SCAN == requestCode) { - if (resultCode == CardIOActivity.RESULT_CARD_INFO) { + if (resultCode == CardIOActivity.RESULT_CARD_INFO || resultCode == CardIOActivity.RESULT_CONFIRMATION_SUPPRESSED) { CreditCard scanResult = null; if (intent.hasExtra(CardIOActivity.EXTRA_SCAN_RESULT)) { scanResult = intent