The Stripe Identity Android SDK makes it quick and easy to verify your user's identity in your Android app. We provide a prebuilt UI to collect your user's ID documents, match photo ID with selfies, and validate ID numbers.
To get access to the Identity Android SDK, visit the Identity Settings page and click Enable.
Simplified security: We've made it simple for you to securely collect your user's personally identifiable information (PII) such as identity document images. Sensitive PII data is sent directly to Stripe Identity instead of passing through your server. For more information, see our integration security guide.
Automatic document capture: We automatically capture images of the front and back of government-issued photo ID to ensure a clear and readable image.
Selfie matching: We capture photos of your user's face and review it to confirm that the photo ID belongs to them. For more information, see our guide on adding selfie checks.
Identity information collection: We collect name, date of birth, and government ID number to validate that it is real.
Prebuilt UI: We provide IdentityVerificationSheet, a prebuilt UI that combines all the steps required to collect ID documents, selfies, and ID numbers into a single sheet that displays on top of your app.
Automated verification: Stripe Identity's automated verification technology looks for patterns to help determine if an ID document is real or fake and uses distinctive physiological characteristics of faces to match your users' selfies to photos on their ID document. Collected identity information is checked against a global set of databases to confirm that it exists. Learn more about the verification checks supported by Stripe Identity, accessing verification results, or our integration guide on handling verification outcomes.
If you intend to use this SDK with Stripe's Identity service, you must not modify this SDK. Using a modified version of this SDK with Stripe's Identity service, without Stripe's written authorization, is a breach of your agreement with Stripe and may result in your Stripe account being shut down.
Get started with Stripe Identity's Android integration guide and example project, or 📘 browse the SDK reference for fine-grained documentation of all the classes and methods in the SDK.
Identity Android SDK uses a portable TFLite runtime to execute machine learning models, if your application is released through Google play, you could instead use the Google play runtime, this would reduce the SDK size by ~1.2mb.
To do so, configure your app's dependency on stripe identity as follows.
implementation("com.stripe:identity:x.y.z") {
exclude group: 'com.stripe', module: 'ml-core-default' // exclude the default tflite runtime
}
implementation("com.stripe:ml-core-googleplay:x.y.z") // include the google play tflite runtime
identity-example – This example demonstrates how to capture your users' ID documents on Android and securely send them to Stripe Identity for identity verification.