Skip to content

Commit

Permalink
Merge pull request #1 from hvaughan3/hvaughan3-patch-1
Browse files Browse the repository at this point in the history
fix suppressConfirmation bug on Android card-io#63
  • Loading branch information
hvaughan3 authored May 18, 2018
2 parents 95011ec + aaf4d94 commit ebf0e96
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 ebf0e96

Please sign in to comment.