{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.vipps.no/ucp/2026-04-08/schemas/types/platform_config.json",
  "title": "Vipps Platform Config",
  "description": "Platform-level configuration for the no.vipps.ucp.payment_handler. Declared by platforms in their profile to advertise support for and constraints on this handler.",
  "type": "object",
  "properties": {
    "supported_credential_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["MSISDN", "TOKEN"]
      },
      "minItems": 1,
      "description": "The WALLET credential types the platform is able to supply. MSISDN requires the platform to capture or verify the user's Vipps-registered phone number (e.g. via Vipps Login). TOKEN requires the platform to hold an authenticated Vipps customer session. If not specified, all credential types are assumed supported."
    }
  },
  "examples": [
    {
      "supported_credential_types": ["MSISDN", "TOKEN"]
    },
    {
      "supported_credential_types": ["TOKEN"]
    }
  ]
}
