调至内容部分
创建账户或登录
Stripe 文档徽标
/
询问人工智能
创建账户登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
API 和 SDK帮助
概览
关于 Stripe 支付
升级您的集成
支付分析
线上付款
概览查找您的用例使用 Managed Payments
使用 Payment Link
使用预制结账页面
使用 Elements 构建自定义集成
构建应用内集成
线下支付
Terminal
支付方式
添加支付方式
管理支付方式
用 Link 更快结账
支付场景
处理多种货币
自定义支付流程
灵活收单
编排
超越支付功能
成立公司
加密货币
智能体商务 (Agentic Commerce)
Financial Connections
Climate
了解欺诈
Radar 欺诈保护
管理争议
验证身份
    概览
    开始
    验证身份文件
    处理验证结果
    访问验证结果
    审核验证结果
    验证流程
    验证检查
    关于 API
    Verification Sessions
    上线
    上线前
    支持的使用案例
    Identity 介绍
美国
简体中文
首页付款Verify 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 government-issued 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:

中国
中国香港
丹麦
乌克兰
乌兹别克斯坦
乌干达
乌拉圭
亚美尼亚
以色列
伊拉克
俄罗斯
保加利亚
克罗地亚
列支敦士登
加拿大
加纳
匈牙利
北马其顿
南非
卢森堡
印度
印度尼西亚
危地马拉
厄瓜多尔
台湾
哈萨克斯坦
哥伦比亚
哥斯达黎加
喀麦隆
土耳其
埃及
塞尔维亚
塞浦路斯
多米尼加共和国
奥地利
委内瑞拉
孟加拉国
尼日利亚
尼泊尔
巴勒斯坦领土
巴哈马
巴基斯坦
巴拉圭
巴拿马
巴林
巴西
希腊
德国
意大利
拉脱维亚
挪威
捷克
摩尔多瓦
摩洛哥
斯洛伐克
斯洛文尼亚
斯里兰卡
新加坡
新西兰
日本
智利
格鲁吉亚
比利时
毛里求斯
沙特阿拉伯
法国
波兰
波多黎各
泰国
泽西岛
洪都拉斯
海地
澳大利亚
爱尔兰
爱沙尼亚
牙买加
玻利维亚
瑞典
瑞士
白俄罗斯
科威特
科特迪瓦
秘鲁
突尼斯
立陶宛
约旦
缅甸
罗马尼亚
美国
肯尼亚
芬兰
英国
荷兰
菲律宾
萨尔瓦多
葡萄牙
蒙古
西班牙
贝宁
越南
阿塞拜疆
阿尔及利亚
阿尔巴尼亚
阿根廷
阿联酋
韩国
马尔他
马来西亚
黎巴嫩
墨西哥

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.js
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 government-issued photo ID and a selfie 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.js
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_CPjfjxlgVFA140bA72R6KqgC", "object": "identity.verification_report", "type": "document", "verification_session": "vs_9tWb0kL9bm8MdXT5riyNMtNA", "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_uH0bh2Tj1hmglMeKC7hgZ2AC", "file_qAuExEBRX1DpJvvgJzhMGbLe"], "issued_date": { "day": 4, "month": 27, "year": 2021 }, "issuing_country": "US" }, "selfie": { "status": "verified", "error": null, "document": "file_0SD2OefwpBYkSdquXYvBdrp7", "selfie": "file_XBKFkMiERPPJ86O1qbur4ohz", } }

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.

另请参阅

  • Verify your users’ identity documents
  • The Verification Sessions API
此页面的内容有帮助吗?
是否
  • 需要帮助?联系支持。
  • 查看我们的更改日志。
  • 有问题?联系销售。
  • LLM? Read llms.txt.
  • Powered by Markdoc