Ir a contenido
Crea una cuenta
o
Inicia sesión
Logotipo de Stripe Docs
/
Pregúntale a la IA
Crear una cuenta
Iniciar sesión
Empieza ahora
Pagos
Ingresos
Plataformas y marketplaces
Gestión del dinero
Recursos para desarrolladores
Resumen
Acerca de Stripe Payments
Actualiza tu integración
Análisis de pagos
Pagos electrónicos
ResumenEncuentra tu caso de usoPagos administrados
Usa Payment Links
Crea una página del proceso de compra
Desarrolla una integración avanzada
Desarrolla una integración en la aplicación
Métodos de pago
Agrega métodos de pago
Gestiona los métodos de pago
Finalización de compra más rápida con Link
Interfaces de pago
Payment Links
Checkout
Elements para la web
Elements en la aplicación
Escenarios de pago
Administrar varias monedas
Flujos de pago personalizados
Capacidad adquirente flexible
Orquestación
Pagos en persona
Terminal
Más allá de los pagos
Constituye tu empresa
Criptomonedas
Financial Connections
Climate
Comprender el fraude
Protección contra fraudes de Radar
Gestionar disputas
Verificar identidades
    Resumen
    Empieza ahora
    Verificar documentos de identidad
    Gestionar los resultados de las verificaciones
    Acceder a los resultados de las verificaciones
    Revisar los resultados de las verificaciones
    Flujos de verificación
    Comprobaciones de verificación
    Acerca de las API
    Sesiones de verificación
    Pasar a modo activo
    Antes de pasar a modo activo
    Casos de uso compatibles
    En qué consiste Identity
InicioPagosVerify identities

Verification checks

Learn about the different verification checks supported by Stripe Identity.

Stripe Identity currently supports five types of verification checks: document, selfie, ID number, address, and phone.

Each verification check requires different information from your user, has different coverage, and has a different verification flow. After you’ve integrated one check, you can add another with minimal changes to your integration.

While document checks provide a defense against the use of fraudulent identity documents, it’s possible for fraudsters to get access to legitimate stolen documents. To prevent this, Stripe Identity can perform selfie checks on your users.

Selfie checks look for distinguishing biological traits, such as face geometry, from a photo ID and a picture of your user’s face. Stripe then uses advanced machine learning algorithms to ensure the face pictures belong to the same person.

In some places, such as the EU, there are privacy laws that require you to justify your use of biometric technology or offer an alternative, non-biometric means of verification. We recommend you offer an alternative verification option or consult with your legal counsel.

Availability

Selfie checks are available for government issued photo IDs from the following countries:

Albania
Alemania
Arabia Saudí
Argelia
Argentina
Armenia
Australia
Austria
Azerbaiyán
Bahamas
Bangladés
Baréin
Bélgica
Benín
Bielorrusia
Bolivia
Brasil
Bulgaria
Camerún
Canadá
Chile
China
Chipre
Colombia
Corea del Sur
Costa Rica
Côte d’Ivoire
Croacia
Dinamarca
Ecuador
Egipto
El Salvador
Emiratos Árabes Unidos
Eslovaquia
Eslovenia
España
Estados Unidos
Estonia
Filipinas
Finlandia
Francia
Georgia
Ghana
Grecia
Guatemala
Haití
Honduras
Hong Kong
Hungría
India
Indonesia
Irak
Irlanda
Israel
Italia
Jamaica
Japón
Jersey
Jordania
Kazajistán
Kenia
Kuwait
Letonia
Líbano
Liechtenstein
Lituania
Luxemburgo
Macedonia del Norte
Malasia
Malta
Marruecos
Mauricio
México
Moldavia
Mongolia
Myanmar (Birmania)
Nepal
Nigeria
Noruega
Nueva Zelanda
Países Bajos
Pakistán
Panamá
Paraguay
Perú
Polonia
Portugal
Puerto Rico
Reino Unido
República Checa
República Dominicana
Rumania
Rusia
Serbia
Singapur
Sri Lanka
Sudáfrica
Suecia
Suiza
Tailandia
Taiwán
Territorios Palestinos
Túnez
Turquía
Ucrania
Uganda
Uruguay
Uzbekistán
Venezuela
Vietnam

Adding selfie checks

To add selfie checks to your application, first follow the guide to collect and verify identity documents.

Adding selfie checks to VerificationSessions

When creating a VerificationSession, use the options.document.require_matching_selfie parameter to enable selfie checks.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/identity/verification_sessions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d type=document \ -d "options[document][require_matching_selfie]"=true

This configures the verification flow to require a photo ID and a face picture from your user.

Accessing selfie check results

After it’s submitted and processed, the VerificationSession status changes depending on the result of the checks:

  • verified — Both the document and selfie checks were successful. The session verified_outputs contains extracted information from the document.
  • requires_input — At least one of the document or the selfie checks failed.

To access the captured selfie and document images, you’ll need to retrieve the associated VerificationReport, you can do this by expanding the last_verification_report field in the session:

server.js
Node
Ruby
Python
PHP
Java
Go
.NET
No results
// Set your secret key. Remember to switch to your live secret key in production. // See your keys here: https://dashboard.stripe.com/apikeys const stripe = require('stripe')(
'sk_test_BQokikJOvBiI2HlWgH4olfQ2'
); const verificationSession = await stripe.identity.verificationSessions.retrieve( '{{SESSION_ID}}', { expand: ['last_verification_report'], } ); const verificationReport = verificationSession.last_verification_report;

The VerificationReport has document and selfie fields holding the results of the document and selfie checks. Here’s an example VerificationReport with successful document and selfie checks:

{ "id": "vr_NQFdeWgJf8bKbKs0EjUhDmj0", "object": "identity.verification_report", "type": "document", "verification_session": "vs_0KEszBQqVBiHJ1de5HYr17nN", "created": 1611776872, "livemode": true, "options": { "document": { "require_matching_selfie": true } }, "document": { "status": "verified", "error": null, "first_name": "Jenny", "last_name": "Rosen", "address": { "line1": "1234 Main St.", "city": "San Francisco", "state": "CA", "postal_code": "94111", "country": "US" }, "document_type": "id_card", "expiration_date": { "day": 17, "month": 7, "year": 2024 }, "files": ["file_9hfghnt7mFt2qGhcGhsp3cmV", "file_ZfZClcpnFAwHaRMTdLxhiHXn"], "issued_date": { "day": 4, "month": 27, "year": 2021 }, "issuing_country": "US" }, "selfie": { "status": "verified", "error": null, "document": "file_HsUrik2TEvMtrMnsnlYGCqqJ", "selfie": "file_TBXo8vFoQVCuHxonS6SUQYgY", } }

To access the collected document and face images, see Accessing verification results.

Understanding selfie check failures

The document and selfie VerificationReport fields contain the collected data as well as a status and error fields to help you understand whether the check is successful or not.

The status field tells you whether each check is successful or not. The possible values are:

  • verified - The verification check is successful and the collected data is verified.
  • unverified - The verification check failed. You can check the error hash for more information.

When the verification check fails, the error field contains code and reason values to explain the verification failure. The error.code field can be used to programmatically handle verification failures. The reason field contains a descriptive message explaining the failure reason and can be shown to your user.

Document check failures

Failure details are available in the report document.error field.

Error codeDescription
document_expiredThe provided identity document has expired.
document_unverified_otherStripe couldn’t verify the provided identity document. See list of supported document types.
document_type_not_supportedThe provided identity document isn’t one of the session’s allowed document types.

Selfie check failures

Failure details are available in the report selfie.error field.

Error codeDescription
selfie_document_missing_photoThe provided identity document did not contain a picture of a face.
selfie_face_mismatchThe captured face image did not match with the document’s face.
selfie_unverified_otherStripe couldn’t verify the provided selfie.
selfie_manipulatedThe captured face image was manipulated.

Consulta también

  • Verify your users’ identity documents
  • The Verification Sessions API
¿Te fue útil esta página?
SíNo
  • ¿Necesitas ayuda? Ponte en contacto con soporte.
  • Únete a nuestro programa de acceso anticipado.
  • Echa un vistazo a nuestro registro de cambios.
  • ¿Tienes alguna pregunta? Contacto.
  • ¿LLM? Lee llms.txt.
  • Con tecnología de Markdoc