跳转到主要内容

配置 3DS 认证

POST/api/v1/bank/public/setup-authentication
公共端点

此端点由 A55Pay SDK 从付款人的浏览器调用。无需 Bearer token。它在卡片支付前初始化 3DS DDC(设备数据采集)流程。


请求头

请求头必填
Content-Typeapplication/json

请求体

字段类型必填说明
card_binstring卡号的前 6-8 位数字
wallet_uuidstring (UUID)与收费关联的钱包
merchant_idstring (UUID)商户标识符

响应字段

字段类型说明
session_idstringDDC 会话标识符——传递给 device_info.session_id
ddc_urlstring发卡行 DDC iframe 的 URL
ddc_jwtstringDDC iframe 的 JWT token
providerstring处理认证的 3DS 提供商
expires_atstringISO 8601 格式的会话过期时间

HTTP 状态码

状态码说明
2003DS 配置已初始化
400BIN 无效或缺少必填字段
404钱包或商户未找到
422卡片 BIN 不符合 3DS 条件
429超出请求频率限制
500服务器内部错误

代码示例

curl -s -X POST https://core-manager.a55.tech/api/v1/bank/public/setup-authentication \
-H "Content-Type: application/json" \
-d '{
"card_bin": "402400",
"wallet_uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"merchant_id": "11111111-1111-1111-1111-111111111111"
}'

错误响应示例

{
"status": "error",
"message": [
{
"code": "BIN_NOT_3DS_ELIGIBLE",
"source": "authentication",
"description": "Card BIN 999999 is not eligible for 3DS authentication"
}
]
}