Skip to content

Commit

Permalink
fix suppressConfirmation bug on Android card-io#63
Browse files Browse the repository at this point in the history
accept RESULT_CONFIRMATION_SUPPRESSED as success result
  • Loading branch information
hvaughan3 authored May 18, 2018
1 parent 95011ec commit aaf4d94
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 aaf4d94

Please sign in to comment.