{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.vipps.no/ucp/2026-04-08/schemas/schema.json",
  "title": "Vipps Payment Handler Schema",
  "description": "Root schema for the no.vipps.ucp.payment_handler payment handler. Defines the supported payment instrument and the business, platform, and response configuration variants.",
  "name": "no.vipps.ucp.payment_handler",
  "version": "2026-04-08",
  "$defs": {
    "no.vipps.ucp.payment_handler": {
      "payment_instrument": {
        "title": "Vipps Payment Instrument",
        "description": "The payment instrument submitted by the platform at checkout. Supports WALLET and CARD.",
        "$ref": "payment_instrument.json"
      },
      "platform_schema": {
        "title": "Vipps (Platform)",
        "description": "Platform-level handler configuration for discovery.",
        "allOf": [
          {
            "$ref": "https://ucp.dev/2026-04-08/schemas/payment_handler.json#/$defs/platform_schema"
          },
          {
            "properties": {
              "config": {
                "$ref": "types/platform_config.json",
                "description": "Platform-level configuration for the Vipps payment handler."
              }
            }
          }
        ]
      },
      "business_schema": {
        "title": "Vipps (Business)",
        "description": "Business-level handler configuration for discovery.",
        "allOf": [
          {
            "$ref": "https://ucp.dev/2026-04-08/schemas/payment_handler.json#/$defs/business_schema"
          },
          {
            "properties": {
              "config": {
                "$ref": "types/business_config.json",
                "description": "Business (merchant) configuration for the Vipps payment handler."
              }
            }
          }
        ]
      },
      "response_schema": {
        "title": "Vipps (Response)",
        "description": "Runtime handler configuration returned in checkout responses.",
        "allOf": [
          {
            "$ref": "https://ucp.dev/2026-04-08/schemas/payment_handler.json#/$defs/response_schema"
          },
          {
            "properties": {
              "config": {
                "$ref": "types/response_config.json",
                "description": "Runtime configuration returned by the Vipps payment handler in checkout responses."
              }
            }
          }
        ]
      }
    }
  }
}
