Skip to content

Commit

Permalink
Merge pull request #1 from mazagatshy/master
Browse files Browse the repository at this point in the history
fix suppressConfirmation bug on Android card-io#63
  • Loading branch information
rugoncalves committed Dec 12, 2018
2 parents 95011ec + 3410c60 commit 8a74d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/CardIOCordovaPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a74d12

Please sign in to comment.