{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.dev/draft/schemas/common/payment_authentication.json",
  "name": "dev.ucp.common.payment.authentication",
  "title": "Payment Authentication Extension",
  "description": "Extends capabilities (e.g., checkout in retail shopping) with standard device data collection and 3DS challenge Action types used during payment authentication.",
  "$defs": {
    "payment_actions": {
      "type": "object",
      "properties": {
        "actions": {
          "type": "object",
          "ucp_request": "omit",
          "properties": {
            "dev.ucp.common.payment.device_data_collection": {
              "type": "array",
              "description": "A 3DS device data collection Action.",
              "items": {
                "type": "object",
                "required": [
                  "config"
                ],
                "properties": {
                  "config": {
                    "type": "object",
                    "required": [
                      "payment_instrument_id",
                      "url"
                    ],
                    "properties": {
                      "payment_instrument_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "ID of the payment instrument in the containing Checkout associated with this device data collection Action."
                      },
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "URL for the invisible device data collection surface."
                      }
                    }
                  }
                }
              }
            },
            "dev.ucp.common.payment.three_ds_challenge": {
              "type": "array",
              "description": "A 3DS challenge Action.",
              "items": {
                "type": "object",
                "required": [
                  "config"
                ],
                "properties": {
                  "config": {
                    "type": "object",
                    "required": [
                      "payment_instrument_id",
                      "url"
                    ],
                    "properties": {
                      "payment_instrument_id": {
                        "type": "string",
                        "minLength": 1,
                        "description": "ID of the payment instrument in the containing Checkout associated with this 3DS challenge Action."
                      },
                      "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "URL for the buyer-facing 3DS challenge surface."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "dev.ucp.shopping.checkout": {
      "allOf": [
        {
          "$ref": "https://ucp.dev/draft/schemas/shopping/checkout.json"
        },
        {
          "$ref": "#/$defs/payment_actions"
        }
      ]
    },
    "dev.ucp.lodging.booking": {
      "allOf": [
        {
          "$ref": "https://ucp.dev/draft/schemas/lodging/booking.json"
        },
        {
          "$ref": "#/$defs/payment_actions"
        }
      ]
    }
  },
  "version": "2026-11-06"
}