{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ucp.vipps.no/ucp/2026-04-08/schemas/types/response_config.json",
  "title": "Vipps Response Config",
  "description": "Runtime configuration returned by the no.vipps.ucp.payment_handler in checkout session responses. Contains the resolved merchant identity and environment for the current session.",
  "type": "object",
  "required": ["merchant_serial_number", "environment"],
  "properties": {
    "merchant_serial_number": {
      "type": "string",
      "description": "The merchant identifier (MSN) in use for this checkout session.",
      "pattern": "^\\d{4,20}$"
    },
    "environment": {
      "type": "string",
      "enum": ["TEST", "PRODUCTION"],
      "description": "The Vipps environment in use for this checkout session."
    }
  },
  "examples": [
    {
      "merchant_serial_number": "123456",
      "environment": "PRODUCTION"
    }
  ]
}
