Card data security container component setup
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
-
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.
-
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.
- Data binding: Enables you to create dynamic property values derived from multiple sources, such as state variables (@state) in the page, URL variables (@context), or payloads from a data resource (@data). For details, see Add and configure data resources to a page.
- Scripting: Creates a scripted property value. For details on scripted values, see Create and bind a client state parameter to a component.
|
Label [property] |
Description |
|---|---|
|
Container type[containerType] |
Sets the mode for how the component handles PCI information. Choices include:- Input card data
|
|
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 |
|
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)
|
|
Masking level[hideRedaction] |
Controls how much data is hidden when the container type is Display card data. Choices include:- Use default masking level (Default)
|
|
PCI input elements[inputElements] |
JSON array that determines the fields displayed when the container type is Input card data. Available field types include:-
|
|
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. |
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 |
|
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 |
|
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 |
|
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 |
|
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 [ { "name": "response", "label": "Response", "fieldType": "json", "typeMetadata": { "schema": { "type": "object" } } } ] Text |
---
title: Card data security container component setup
description: Use the Card data security container to configure secure PCI data and document handling on your page.Configure the Card data security container's settings to control how it collects, reveals, uploads, and displays PCI-sensitive data.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.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/card-data-security-container-component-uib-setup.html
release: brazil
product: UI Builder
classification: ui-builder
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 7
breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications]
---
# Card data security container component setup
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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md).
**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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). \[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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md)
## 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.
- **Data binding**: Enables you to create dynamic property values derived from multiple sources, such as state variables \(@state\) in the page, URL variables \(@context\), or payloads from a data resource \(@data\). For details, see [Add and configure data resources to a page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md).
- **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
<table id="table-uib-prop-labels"><thead><tr><th>
Label \[property\]
</th><th>
Description
</th></tr></thead><tbody><tr><td>
Container type\[containerType\]
</td><td>
Sets the mode for how the component handles PCI information. Choices include:- **Input card data**
- **Display card data**
- **Upload sensitive files**
- **Display sensitive files**
</td></tr><tr><td>
Tokenizer vault ID\[vaultId\]
</td><td>
The unique identifier of your tokenizer vault.
</td></tr><tr><td>
Tokenizer vault URL\[vaultUrl\]
</td><td>
The URL of your tokenizer vault.
</td></tr><tr><td>
Tokenizer vault bearer token\[bearerToken\]
</td><td>
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.
</td></tr><tr><td>
Tokenizer vault table name\[table\]
</td><td>
The table in your tokenizer vault that stores the sensitive data.
</td></tr><tr><td>
Action triggered\[actionTriggered\]
</td><td>
Triggers the component's action \(set by `containerType`\) whenever the bound client state parameter changes.
</td></tr><tr><td>
Context column name\[contextColumnName\]
</td><td>
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.
</td></tr><tr><td>
Reveal level\[revealRedaction\]
</td><td>
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**
</td></tr><tr><td>
Masking level\[hideRedaction\]
</td><td>
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**
</td></tr><tr><td>
PCI input elements\[inputElements\]
</td><td>
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`
</td></tr><tr><td>
PCI reveal elements\[revealElement\]
</td><td>
JSON object representing the tokenized data element that is revealed when the container type is **Display card data**.
</td></tr><tr><td>
File I/O field\[fileElement\]
</td><td>
The column name and ID for retrieving and storing sensitive files. The ID is required for displaying sensitive files.
</td></tr></tbody>
</table>## 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/event-handler.md).
### Event descriptions
<table id="table_z3k_pgw_c5b"><thead><tr><th>
Event
</th><th>
Description
</th></tr></thead><tbody><tr><td>
PCI data successfully inserted\[SN\_CARD\_DATA\_SEC\#PCI\_DATA\_INSERTED\]
</td><td>
Tokenized PCI data is successfully uploaded with a Skyflow ID into the tokenizer vault.Payload:
```
[
{
"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"]
}
}
}
]
```
</td></tr><tr><td>
File successfully uploaded\[SN\_CARD\_DATA\_SEC\#FILE\_UPLOADED\]
</td><td>
A file is successfully uploaded with metadata and a Skyflow ID to the tokenizer vault.Payload:
```
[
{
"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"]
}
}
}
]
```
</td></tr><tr><td>
PCI data insert failed\[SN\_CARD\_DATA\_SEC\#PCI\_DATA\_INSERT\_FAILED\]
</td><td>
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"
}
}
}
]
```
</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"
}
}
}
]
```
</td></tr><tr><td>
PCI data reveal failed\[SN\_CARD\_DATA\_SEC\#PCI\_DATA\_REVEAL\_FAILED\]
</td><td>
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"
}
}
}
]
```
</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"
}
}
}
]
```
</td></tr><tr><td>
File reveal failed\[SN\_CARD\_DATA\_SEC\#FILE\_REVEAL\_FAILED\]
</td><td>
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"
}
}
}
]
```
</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"
}
}
}
]
```
</td></tr></tbody>
</table>| title | Card data security container component setup |
| description | Use the Card data security container to configure secure PCI data and document handling on your page.Configure the Card data security container's settings to control how it collects, reveals, uploads, and displays PCI-sensitive data.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. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/application-development/ui-builder/card-data-security-container-component-uib-setup.html |
| release | brazil |
| product | UI Builder |
| classification | ui-builder |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 7 |
| breadcrumb | UIB Setup InformationUI BuilderBuilder libraryDeveloping your applicationClassic app developmentBuilding applications |