Card data security container component setup

task brazil Updated Sep 10, 2026 7 min read card-data-security-container-component-uib-setup.md
Raw file servicenow.com

Use the Card data security container to configure secure PCI data and document handling on your page.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: workspace_admin or ui_builder_admin

Procedure

  1. Define a label for Card data security container that differentiates it from other components in the content tree.

    A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants. [Omitted image "card-data-security-container-content-tree.png"] Alt text: Card data security container in the UI Builder content tree.

  2. Select the Card data security container component using one of these methods:

    • Click anywhere within the component on the page.
    • Select the label you created for your component in the content tree. The configuration options appear in the panel on the right.

    [Omitted image "card-data-security-container-config-panel.png"] Alt text: Card data security container in the UI Builder configuration panel.

Parent Topic:UIB Setup Information

Card data security container component properties

Configure the Card data security container's settings to control how it collects, reveals, uploads, and displays PCI-sensitive data.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Label [property]

Description

Container type[containerType]

Sets the mode for how the component handles PCI information. Choices include:- Input card data

  • Display card data
  • Upload sensitive files
  • Display sensitive files

Tokenizer vault ID[vaultId]

The unique identifier of your tokenizer vault.

Tokenizer vault URL[vaultUrl]

The URL of your tokenizer vault.

Tokenizer vault bearer token[bearerToken]

The bearer token used to authorize API requests to the tokenizer vault. This token is a JWT bearer token generated by Skyflow and is obtained from the Get Bearer Token data broker.

Tokenizer vault table name[table]

The table in your tokenizer vault that stores the sensitive data.

Action triggered[actionTriggered]

Triggers the component's action (set by containerType) whenever the bound client state parameter changes.

Context column name[contextColumnName]

The column in your tokenizer vault where the context from the JSON Web Token (JWT) bearer token should be stored. If provided, the ctx claim from the token will be extracted and stored in this column.

Reveal level[revealRedaction]

Controls how much data is shown when the container type is Display card data. Choices include:- Use default reveal level (Default)

  • Show all
  • Show masked value
  • Show nothing

Masking level[hideRedaction]

Controls how much data is hidden when the container type is Display card data. Choices include:- Use default masking level (Default)

  • Mask nothing
  • Partial mask
  • Mask all

PCI input elements[inputElements]

JSON array that determines the fields displayed when the container type is Input card data. Available field types include:- CVV

  • CARD_NUMBER
  • EXPIRATION_DATE
  • CARDHOLDER_NAME
  • INPUT_FIELD
  • PIN
  • EXPIRATION_MONTH
  • EXPIRATION_YEAR

PCI reveal elements[revealElement]

JSON object representing the tokenized data element that is revealed when the container type is Display card data.

File I/O field[fileElement]

The column name and ID for retrieving and storing sensitive files. The ID is required for displaying sensitive files.

## Card data security container component events

Select event handlers to configure the events provided with the Card data security container component. Event handlers work with data resources to link the Card data security container actions to the data you want to display to your users.

The Events tab shows the events used by the Card data security container component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Card data security container actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event descriptions

Event

Description

PCI data successfully inserted[SN_CARD_DATA_SEC#PCI_DATA_INSERTED]

Tokenized PCI data is successfully uploaded with a Skyflow ID into the tokenizer vault.Payload:

JSON
[  {    "name": "statusCode",    "label": "HTTP-like status code (200 for success)",    "fieldType": "number",    "typeMetadata": {      "schema": {        "type": "number",        "enum": [200]      }    }  },  {    "name": "message",    "label": "Success message",    "fieldType": "string",    "typeMetadata": {      "schema": {        "type": "string"      }    }  },  {    "name": "data",    "label": "PCI data payload",    "fieldType": "json",    "typeMetadata": {      "schema": {        "type": "object",        "properties": {          "tokens": {            "type": "object",            "description": "Tokenized PCI data fields"          },          "skyflowId": {            "type": "string",            "description": "Skyflow ID for the inserted record"          }        },        "required": ["tokens", "skyflowId"]      }    }  }]

File successfully uploaded[SN_CARD_DATA_SEC#FILE_UPLOADED]

A file is successfully uploaded with metadata and a Skyflow ID to the tokenizer vault.Payload:

JSON
[  {    "name": "statusCode",    "label": "HTTP-like status code (200 for success)",    "fieldType": "number",    "typeMetadata": {      "schema": {        "type": "number",        "enum": [200]      }    }  },  {    "name": "message",    "label": "Success message",    "fieldType": "string",    "typeMetadata": {      "schema": {        "type": "string"      }    }  },  {    "name": "data",    "label": "File upload data payload",    "fieldType": "json",    "typeMetadata": {      "schema": {        "type": "object",        "properties": {          "metaData": {            "type": "array",            "description": "Metadata of uploaded files"          },          "fileUploadResponse": {            "type": "array",            "description": "Raw file upload response from Skyflow"          },          "uploadedFiles": {            "type": "array",            "description": "Uploaded files with skyflow IDs and file names",            "items": {              "type": "object",              "properties": {                "skyflowId": {                  "type": "string",                  "description": "Skyflow ID for the uploaded file"                },                "fileName": {                  "type": "string",                  "description": "Name of the uploaded file"                }              },              "required": ["skyflowId", "fileName"]            }          }        },        "required": ["metaData", "fileUploadResponse", "uploadedFiles"]      }    }  }]

PCI data insert failed[SN_CARD_DATA_SEC#PCI_DATA_INSERT_FAILED]

An attempt to insert PCI data into the tokenizer vault fails. If the attempt fails due to expired tokens, New token requested is triggered instead. This event returns a standardized error payload:``` [ { "name": "statusCode", "label": "HTTP-like error status code", "fieldType": "number", "typeMetadata": { "schema": { "type": "number", "enum": [400, 403, 404, 500, 503] } } }, { "name": "error", "label": "Error message", "fieldType": "string", "typeMetadata": { "schema": { "type": "string" } } } ]

Text
</td></tr><tr><td>
File upload failed\[SN\_CARD\_DATA\_SEC\#FILE\_UPLOAD\_FAILED\]
</td><td>
A file failed to upload to the tokenizer vault. This event returns a standardized error payload:```[  {    "name": "statusCode",    "label": "HTTP-like error status code",    "fieldType": "number",    "typeMetadata": {      "schema": {        "type": "number",        "enum": [400, 401, 403, 404, 500, 503]      }    }  },  {    "name": "error",    "label": "Error message",    "fieldType": "string",    "typeMetadata": {      "schema": {        "type": "string"      }    }  }]

PCI data reveal failed[SN_CARD_DATA_SEC#PCI_DATA_REVEAL_FAILED]

The component failed to reveal PCI data from the tokenizer vault. This event returns a standardized error payload:``` [ { "name": "statusCode", "label": "HTTP-like error status code", "fieldType": "number", "typeMetadata": { "schema": { "type": "number", "enum": [400, 401, 403, 404, 500, 503] } } }, { "name": "error", "label": "Error message", "fieldType": "string", "typeMetadata": { "schema": { "type": "string" } } } ]

Text
</td></tr><tr><td>
PCI data hide failed\[SN\_CARD\_DATA\_SEC\#PCI\_DATA\_HIDE\_FAILED\]
</td><td>
The component is unable to hide PCI data from the tokenizer vault. This event returns a standardized error payload:```[  {    "name": "statusCode",    "label": "HTTP-like error status code",    "fieldType": "number",    "typeMetadata": {      "schema": {        "type": "number",        "enum": [400, 401, 403, 404, 500, 503]      }    }  },  {    "name": "error",    "label": "Error message",    "fieldType": "string",    "typeMetadata": {      "schema": {        "type": "string"      }    }  }]

File reveal failed[SN_CARD_DATA_SEC#FILE_REVEAL_FAILED]

The component failed to reveal a file from the tokenizer vault. This event returns a standardized error payload:``` [ { "name": "statusCode", "label": "HTTP-like error status code", "fieldType": "number", "typeMetadata": { "schema": { "type": "number", "enum": [400, 401, 403, 404, 500, 503] } } }, { "name": "error", "label": "Error message", "fieldType": "string", "typeMetadata": { "schema": { "type": "string" } } } ]

Text
</td></tr><tr><td>
New bearer token requested\[SN\_CARD\_DATA\_SEC\#NEW\_TOKEN\_REQUESTED\]
</td><td>
Action to request a new bearer token.Payload:

[ { "name": "response", "label": "Response", "fieldType": "json", "typeMetadata": { "schema": { "type": "object" } } } ]

Text
</td></tr></tbody></table>
Search documentation
Search document titles and file paths on the brazil branch