...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Excerpt | |||||
---|---|---|---|---|---|
Step 1 - Update the Gradle Build Properties to Integrate Cardinal Mobile SDKIn Android Studio, open the app directory (which can also be labeled Module: app) and then open the build.gradle file. Double-check to make sure that you edit the Gradle file that is located in the app directory. Add the following contents to the Gradle file.
|
...
Step 2 - Configure Cardinal Mobile SDKUpon successfully completing Integration in Step 1, get the instance of the cardinal object by Cardinal.getInstance(). SDK offers multiple configuration options for you (if not specified, everything is set to default). For more details: CardinalConfigurationOptions. Use the code snippet below for completing the cardinal.configure().
|
...
...
|
Available Configurations
Anchor | ||||
---|---|---|---|---|
|
Method | Description | Default Values |
---|---|---|
setEnvironment( |
...
957513771 environment) | Sets the environment the SDK has to connect to | CardinalEnvironment.PRODUCTION |
| ||
setUiType(CardinalUiType uiType) | Sets all UI types that the device supports for displaying specific challenge user interfaces within the SDK | CardinalUiType.BOTH |
setRenderType(org.json.JSONArray renderType) | Sets renderLists all UI types that the device supports for displaying specific challenge user interfaces within the SDK | JSONArray rType = new JSONArray(); |
setProxyAddress(java.lang.String proxyAddress) | Sets the proxy the SDK has to connect to | "" |
setEnableQuickAuth(boolean enableQuickAuth) | Sets enable quick auth | false |
setUICustomization(UiCustomization UI Customization) |
...
...
Device Default Values | ||
setEnableDFSync(boolean enableDFSync) | On setting true, onSetupCompleted in step 4, will be called after device data collected is sent to the server | false |
setRequestTimeout(int requestTimeout) | Sets the maximum amount of time (milliseconds) for all exchanges | 8000 |
setChallengeTimeout(int challengeTimeout) | Sets the maximum amount of time (minutes) for challenge | 5 |
setThreeDSRequestorAppURL(String threeDSRequestorAppURL) | The setThreeDSRequestorAppURL method may set the 3DS Requestor App URL. If the app sets the URL, then the SDK shall pass the URL to the server. | "" |
CardinalUiType
Anchor | ||||
---|---|---|---|---|
|
Enum Constant |
---|
BOTH |
NATIVE |
HTML |
CardinalRenderType
Anchor | ||||
---|---|---|---|---|
|
Enum Constant and Description |
---|
HTML |
MULTI_SELECT |
OOB |
OTP |
SINGLE_SELECT |
CardinalEnvironment Anchor CardinalEnvironment CardinalEnvironment
CardinalEnvironment | |
CardinalEnvironment |
Enum Constant |
---|
PRODUCTION |
STAGING |
...