stripe-ios/StripeIdentity/README.md

4.1 KiB
Raw Permalink Blame History

Stripe Identity iOS SDK

The Stripe Identity iOS SDK makes it quick and easy to verify your user's identity in your iOS 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 iOS SDK, visit the Identity Settings page and click Enable.

Table of contents

Features

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.

Requirements

The Stripe Identity iOS SDK is compatible with apps targeting iOS 13.0 or above.

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.

Getting started

Integration

Get started with Stripe Identity's 📚 iOS integration guide and example project, or 📘 browse the SDK reference for fine-grained documentation of all the classes and methods in the SDK.

Identity SDK uses camera to scan documents and selfies, you'll need to set NSCameraUsageDescription in your application's plist, and provide a reason for accessing the camera (e.g. "This app uses the camera to take a picture of your identity documents.").

Example

Identity Verification Example This example demonstrates how to capture your users' ID documents on iOS and securely send them to Stripe Identity for identity verification.

Manual linking

If you link the Stripe Identity library manually, use a version from our releases page and make sure to embed all of the following frameworks:

  • StripeIdentity.xcframework
  • StripeCore.xcframework
  • StripeCameraCore.xcframework
  • StripeUICore.xcframework