其他信号
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面显示了您在创建评估时可以发送的其他字段,以提高评分质量。如需了解详情,请参阅交易数据。
以下代码段显示了一个包含与交易数据相关的其他字段的请求正文示例。
{
"event": {
"token": "YOUR_TOKEN",
"site_key": "KEY_ID",
"expected_action": "YOUR_CHECKOUT_ACTION_NAME",
"transaction_data": {
"transaction_id": "txid-1234567890",
"payment_method": "credit-card",
"card_bin": "411111",
"card_last_four": "1234",
"currency_code": "USD",
"value": 39.98,
"shipping_value": 7.99,
"shipping_address": {
"recipient": "name1 name2",
"address": [
"123 Street Name",
"Apt 1"
],
"locality": "Sunnyvale",
"administrative_area": "CA",
"region_code": "USA",
"postal_code": "123456"
},
"billing_address": {
"recipient": "name1 name2",
"address": [
"123 Street Name",
"Apt 1"
],
"locality": "Sunnyvale",
"administrative_area": "CA",
"region_code": "USA",
"postal_code": "123456"
},
"user": {
"account_id": "abcde12345",
"creation_ms": 1650000000000,
"email": "user@example.com",
"email_verified": true,
"phone_number": "+18005550175",
"phone_verified": false
},
"merchant": {
"account_id": "abcde12345",
"creation_ms": 1650000000000,
"email": "user@example.com",
"email_verified": true,
"phone_number": "+1+18005550178",
"phone_verified": false
},
"items": [
{
"name": "first item",
"value": 19.99,
"quantity": 1,
"merchant_account_id": "abcde12345"
},
{
"name": "second item",
"value": 19.99,
"quantity": 1,
"merchant_account_id": "abcde12345"
}
],
"gateway_info": {
"name": "google",
"gateway_response_code": "SUCCESS",
"avs_response_code": "Y",
"cvv_response_code": "Y"
}
}
}
}
如需了解如何创建评估,请参阅为您的网站创建评估。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-17。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-17。"],[],[],null,["# Additional signals\n\nThis page shows the additional fields that you can send when creating assessments\nto improve the quality of scores. For more information,\nsee [transaction data](/recaptcha/docs/reference/rest/v1/projects.assessments#transactiondata).\n| **Note:** The PII data for Fraud Prevention is not displayed in the platform logs.\n\nThe following code snippet shows a sample request body with additional fields\nrelated to transaction data. \n\n```json\n{\n \"event\": {\n \"token\": \"\u003cvar translate=\"no\"\u003eYOUR_TOKEN\u003c/var\u003e\",\n \"site_key\": \"\u003cvar translate=\"no\"\u003eKEY_ID\u003c/var\u003e\",\n \"expected_action\": \"\u003cvar translate=\"no\"\u003eYOUR_CHECKOUT_ACTION_NAME\u003c/var\u003e\",\n \"transaction_data\": {\n \"transaction_id\": \"txid-1234567890\",\n \"payment_method\": \"credit-card\",\n \"card_bin\": \"411111\",\n \"card_last_four\": \"1234\",\n \"currency_code\": \"USD\",\n \"value\": 39.98,\n \"shipping_value\": 7.99,\n \"shipping_address\": {\n \"recipient\": \"name1 name2\",\n \"address\": [\n \"123 Street Name\",\n \"Apt 1\"\n ],\n \"locality\": \"Sunnyvale\",\n \"administrative_area\": \"CA\",\n \"region_code\": \"USA\",\n \"postal_code\": \"123456\"\n },\n \"billing_address\": {\n \"recipient\": \"name1 name2\",\n \"address\": [\n \"123 Street Name\",\n \"Apt 1\"\n ],\n \"locality\": \"Sunnyvale\",\n \"administrative_area\": \"CA\",\n \"region_code\": \"USA\",\n \"postal_code\": \"123456\"\n },\n \"user\": {\n \"account_id\": \"abcde12345\",\n \"creation_ms\": 1650000000000,\n \"email\": \"user@example.com\",\n \"email_verified\": true,\n \"phone_number\": \"+18005550175\",\n \"phone_verified\": false\n },\n \"merchant\": {\n \"account_id\": \"abcde12345\",\n \"creation_ms\": 1650000000000,\n \"email\": \"user@example.com\",\n \"email_verified\": true,\n \"phone_number\": \"+1+18005550178\",\n \"phone_verified\": false\n },\n \"items\": [\n {\n \"name\": \"first item\",\n \"value\": 19.99,\n \"quantity\": 1,\n \"merchant_account_id\": \"abcde12345\"\n },\n {\n \"name\": \"second item\",\n \"value\": 19.99,\n \"quantity\": 1,\n \"merchant_account_id\": \"abcde12345\"\n }\n ],\n \"gateway_info\": {\n \"name\": \"google\",\n \"gateway_response_code\": \"SUCCESS\",\n \"avs_response_code\": \"Y\",\n \"cvv_response_code\": \"Y\"\n }\n }\n }\n}\n```\n\nTo learn about how to create assessments, see [Create an assessment for your website](/recaptcha/docs/create-assessment-website).\n\nWhat's next\n-----------\n\n- To annotate assessments, see [Annotate assessments with transaction events](/recaptcha/docs/annotate-assessment-fp)."]]