diff --git a/README.md b/README.md index 3e30d22..28ef380 100755 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ The card.io Cordova plugin provides different configurations that could be set a | hideCardIOLogo | Boolean | The card.io logo will not be shown overlaid on the camera. | | useCardIOLogo | Boolean | The card.io logo will be shown instead of the PayPal logo. | | suppressScan | Boolean | Once a card image has been captured but before it has been processed, this value will determine whether to continue processing as usual. | +| usePaypalActionbarIcon | Boolean | Use the PayPal icon in the ActionBar | Integration instructions ------------------------ diff --git a/src/android/CardIOCordovaPlugin.java b/src/android/CardIOCordovaPlugin.java index 0623f42..466dfdf 100644 --- a/src/android/CardIOCordovaPlugin.java +++ b/src/android/CardIOCordovaPlugin.java @@ -74,6 +74,7 @@ private void scan(JSONArray args) throws JSONException { scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_CONFIRMATION, this.getConfiguration(configurations, "suppressConfirmation", false)); // default: false scanIntent.putExtra(CardIOActivity.EXTRA_HIDE_CARDIO_LOGO, this.getConfiguration(configurations, "hideCardIOLogo", false)); // default: false scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_SCAN, this.getConfiguration(configurations, "suppressScan", false)); // default: false + scanIntent.putExtra(CardIOActivity.EXTRA_USE_PAYPAL_ACTIONBAR_ICON, this.getConfiguration(configurations, "usePaypalActionbarIcon", true)); // default: true this.cordova.startActivityForResult(this, scanIntent, REQUEST_CARD_SCAN); }