Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

PCI Engagement Notification

When to use this page

Listening for PCI Engagement events so your app knows when a user is inside a sensitive-data collection screen in the widget.

Overview​

The CCG widget is designed to handle sensitive payment data in compliance with PCI DSS standards. This page covers the PCI Engagement Notification system and how to monitor when sensitive data collection screens (PCI flows) are active in your integration.


PCI Engagement Notification​

The PCI Engagement Notification system sends alerts when a user or agent enters or exits a PCI data collection screen. This allows your application to be aware of when sensitive payment information is being handled.

A PCI Flow is any UI screen designed to collect sensitive payment details, such as credit card or bank account information. When a user interacts with these forms, the widget triggers an event so your integration can respond appropriately.

Forms in Scope​

Card and ACH forms for Add Payment Method and Make a Payment. Text-based, email-based, and Sycurio (telephonic) flows are out of scope β€” these never set the PCI flag.

Target Audience​

Notifications trigger for both agents and authenticated users/guests interacting with the in-scope forms.

Purely a UI/session signal

This is not gated by a feature flag in Merchant settings β€” it's driven entirely by which form is active.

Supported Experiences​

The underlying sessionContext.pci.active flag is a backend/session-level field β€” it's set the same way and readable the same way (via polling) regardless of experience. Only the onEvent callback delivery of this signal is Embedded-only; Hosted integrations get the same information by polling the session endpoint (see Usage below).


Usage​

Embedded Experience​

Pass a callback to the onEvent handler during widget initialization. The callback is invoked with a SESSION_CONTEXT_UPDATED event when PCI status changes.

For full onEvent payload details, see the Embedded Experience β€” Events & Types β€” onEvent section.

Hosted Experience​

Poll the GET /sessions/{sessionId} endpoint periodically. The response contains the sessionContext object β€” inspect pci.active to determine if the user is on a sensitive payment form.


Interpreting the PCI Status​

Regardless of integration type, the PCI status is communicated via the same sessionContext shape:

PropertyValueMeaning
sessionContext.pci.activetrueUser has entered a PCI flow
sessionContext.pci.activefalseUser has exited a PCI flow
info

In Embedded integrations, treat session completion (onSuccess / onError) as the point when PCI is no longer active β€” the user has already exited all PCI-sensitive forms.


Event Payloads​

PCI Flow Entry​

Triggered when a user navigates to a card or bank account input screen.

{
"title": "SESSION_CONTEXT_UPDATED",
"data": {
"sessionContext": {
"pci": {
"active": true
}
}
}
}

PCI Flow Exit​

Triggered when the user navigates away from the card or bank account input screen.

{
"title": "SESSION_CONTEXT_UPDATED",
"data": {
"sessionContext": {
"pci": {
"active": false
}
}
}
}

Things to Keep in Mind​

  • Compatible with all supported payment methods (card, bank account)
  • In Hosted integrations, you must poll the session endpoint β€” the onEvent callback is not available
  • PCI status changes are only communicated via SESSION_CONTEXT_UPDATED in Embedded