From 1d63dc4c946ab5730fda4f0b13844db04fc1f179 Mon Sep 17 00:00:00 2001 From: Drew Hudec Date: Thu, 5 Jan 2023 16:02:32 -0500 Subject: [PATCH] Adds docs for bin/last4 and fixes installation instructions --- docs/sdks/mobile/android/events.mdx | 2 +- docs/sdks/mobile/android/index.mdx | 2 +- docs/sdks/mobile/android/types.mdx | 32 ++++++++++++++--------------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/sdks/mobile/android/events.mdx b/docs/sdks/mobile/android/events.mdx index 7faeab67..fac6398e 100644 --- a/docs/sdks/mobile/android/events.mdx +++ b/docs/sdks/mobile/android/events.mdx @@ -9,7 +9,7 @@ callbacks within your application. ## ChangeEvent -Raised whenever the element's value is changed. +Raised whenever the element's value is changed, upon each keypress and after pasting multiple characters into the element. ### Schema diff --git a/docs/sdks/mobile/android/index.mdx b/docs/sdks/mobile/android/index.mdx index 1cf63cce..d0cea42e 100644 --- a/docs/sdks/mobile/android/index.mdx +++ b/docs/sdks/mobile/android/index.mdx @@ -74,7 +74,7 @@ Add this dependency to your project's build file: } dependencies { - implementation 'com.github.basis-theory.basistheory-android:lib:' + implementation 'com.github.basis-theory:basistheory-android:' } ``` diff --git a/docs/sdks/mobile/android/types.mdx b/docs/sdks/mobile/android/types.mdx index ca2e28bb..f2228b0d 100644 --- a/docs/sdks/mobile/android/types.mdx +++ b/docs/sdks/mobile/android/types.mdx @@ -128,22 +128,14 @@ to your application via the property: #### CardMetadata -| Name | Type | Description | -|------------|-----------|-------------------------------------------------------| -| brand | `String` | The card [brand identifier](#brand-identifiers) | -| cardMask | `String` | The card number mask corresponding to this card brand | -| cvcMask | `String` | The CVC mask corresponding to this card brand | -| isComplete | `Boolean` | Whether this card number is complete for this brand | - -#### ChangeEvent - -The card brand is also included within [ChangeEvents](./events#changeevent) published by the `CardNumberElement` -within an [EventDetails](./events#eventdetails) record of the form: - -| Property | Type | Value | -|----------|----------|----------------------| -| type | `String` | `cardBrand` | -| message | `String` | The brand identifier | +| Name | Type | Description | +|------------|-----------|-------------------------------------------------------------------| +| brand | `String` | The card [brand identifier](#brand-identifiers) | +| cardMask | `String` | The card number mask corresponding to this card brand | +| cvcMask | `String` | The CVC mask corresponding to this card brand | +| isComplete | `Boolean` | Whether this card number is complete for this brand | +| bin | `String` | The first 6 digits of the card number if complete, otherwise null | +| last4 | `String` | The last 4 digits of the card number if complete, otherwise null | #### Brand Identifiers @@ -160,6 +152,14 @@ within an [EventDetails](./events#eventdetails) record of the form: - `hiper` - `hipercard` +### ChangeEvent Details + +The `CardNumberElement` emits [ChangeEvents](./events#changeevent) that may contain several types of [EventDetail](./events#eventdetails) records. + +- `cardBrand`: Contains the [brand identifier](#brand-identifiers) for the card brand. Only included once enough digits are entered to determine a card brand. +- `bin`: Contains the first 6 digits of the card number. Only included for complete card numbers satisfying the brand-specific mask. +- `last4`: Contains the last 4 digits of the card number. Only included for complete card numbers satisfying the brand-specific mask. + ## CardExpirationDateElement The `CardExpirationDateElement` can be used to securely collect credit card expiration dates within