Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Expose CardIOActivity.EXTRA_USE_PAYPAL_ACTIONBAR_ICON in settings #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------------------
Expand Down
1 change: 1 addition & 0 deletions src/android/CardIOCordovaPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down