跳转到主要内容

验证 3DS 挑战

POST/api/v1/bank/public/charge/authentication/{uuid}/validate
公共端点

此端点在付款人完成发卡行 iframe 中的 3DS(3D Secure 验证)挑战后调用。SDK 或您的重定向处理程序调用此端点以完成认证并继续支付。


请求头

请求头必填
Content-Typeapplication/json

路径参数

字段类型必填说明
uuidstring (UUID)发起 3DS 认证的收费 UUID

请求体

字段类型必填说明
transaction_idstring来自挑战响应的 3DS 交易 ID

响应字段

字段类型说明
charge_uuidstring收费标识符
authentication_statusstringauthenticatedfailedattempted
ecistring电子商务指示符(例如 050607
cavvstring持卡人认证验证值
statusstring认证后的收费状态(confirmederror
messagearray/null认证失败时的错误详情

HTTP 状态码

状态码说明
200验证已处理
400transaction_id 无效或缺少必填字段
404收费未找到或无待处理的认证
409认证已验证
422认证会话已过期
429超出请求频率限制
500服务器内部错误

代码示例

curl -s -X POST "https://core-manager.a55.tech/api/v1/bank/public/charge/authentication/a1b2c3d4-e5f6-7890-abcd-ef1234567890/validate" \
-H "Content-Type: application/json" \
-d '{"transaction_id": "d4e5f6a7-b8c9-0123-defg-h45678901234"}'

错误响应示例

{
"charge_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"authentication_status": "failed",
"status": "error",
"message": [
{
"code": "AUTHENTICATION_FAILED",
"source": "3ds",
"description": "Issuer rejected the 3DS challenge. Payer may retry or use a different card."
}
]
}