对象:AuthenticationResponse

响应正文

身份验证响应期间发送的对象。

以下是明文 JSON 响应的示例:

  {
    "associationId": "88ydEE-ioiwe==",
    "requestId": "375dhjf9-Uydd="
  }

AuthenticationResponse 使用 PGP 或 JWE+JWS 进行加密和签名。此外,此值采用可在 web 环境中安全使用的 base64 编码。这种编码在下文中称为 Base64UrlEncode。换言之,必须通过以下函数传递 AuthenticationRequest 的明文 JSON 版本:

Base64UrlEncode(
  PGPSignAndEncrypt(
    '{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
  )
)

Base64UrlEncode(
  JWSignAndEncrypt(
    '{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
  )
)
JSON 表示法
{
  "associationId": string,
  "requestId": string,
}
字段
associationId

string

付款集成商向 Google 反映的反馈。这样,Google 就可以检查传回的 associationId 是否与传入的 gspAssociationId 相同。 如果请求中包含此 ID,则必须填写此字段。

requestId

string

必需:付款集成商向 Google 反馈的信息。这样 Google 就可以防范重放攻击。