Checking access…

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

Widget Modes

Use this reference to choose a config.modes value for a v3 widget session. For request configuration, see Create a Session. For mode names, configuration fields, and session statuses, see the Sessions reference.

Before you choose​

Your merchant must be onboarded to CCG, and your server must create a session with its merchant ID. Available payment methods and entry channels depend on merchant configuration. See Create a Session for the API steps.

Choose a mode​

config.modes valueCustomer goalCustomer contextProcesses a payment?Experience
PAYMENT_METHOD_ENTRYSave a card or bank accountWallet customerNoHosted or Embedded
PAYMENTMake a one-time paymentGuest or wallet customerYesHosted or Embedded
PAYMENT_WITH_WALLETPay with a saved methodWallet customerYesHosted or Embedded
WALLETAdd, edit, or remove saved methodsWallet customerNoHosted or Embedded
PAYMENT_METHOD_SELECTChoose a saved method without payingWallet customerNoHosted or Embedded
PAYMENT_METHOD_DISPLAYReview one saved methodWallet customerNoEmbedded inline only

The experience column describes v3 widget support. For Embedded container restrictions, see Widget Capabilities by Container Type.

A "wallet customer" above includes both a signed-in customer (authUser) and an agent acting on that customer's behalf; "guest" means an unauthenticated guestUser. See Merchants, customers, and agents for these role definitions.

Add Payment Method (PAYMENT_METHOD_ENTRY)​

Use when: A wallet customer needs to save a new card or bank account for later use.

Requires: A wallet customer and a merchant-enabled entry channel.

What happens: The customer enters and saves a payment method. No payment is processed. If a card matches one already in the wallet, CCG updates the existing record instead of creating another; see Duplicate Payment Method.

For the widget steps, see Add a Payment Method Through the UI.

One-Time Payment (PAYMENT)​

Use when: A guest or wallet customer needs to make a payment.

Requires: Payment details in the session and a payment method enabled for the merchant. Available card, bank, and digital-wallet options depend on merchant and device configuration.

What happens: The customer submits a payment. Saving a payment method, when offered, depends on the session's save-mode configuration; see Sessions reference.

Payment With Wallet (PAYMENT_WITH_WALLET)​

Use when: A returning wallet customer should pay with a saved method.

Requires: A wallet customer and payment details in the session. The customer can add a method if the wallet has none.

What happens: The customer selects a saved method and submits a payment. Wallet actions may be available alongside checkout, according to the Embedded container configuration.

Manage Wallet (WALLET)​

Use when: A wallet customer needs to add, edit, or remove saved methods without making a payment.

Requires: A wallet customer.

What happens: The customer manages saved methods. No payment is processed. A duplicate card updates the existing wallet record; see Duplicate Payment Method.

Payment Method Selector (PAYMENT_METHOD_SELECT)​

Use when: A wallet customer needs to choose a saved method without making a payment in the widget.

Requires: A wallet customer with an eligible saved payment method. A session may identify a method to preselect; see Create a Session.

What happens: In Embedded, selection is reported to the merchant through a widget event. In Hosted, the customer confirms the selection and the merchant can poll the session status. An invalidated payment method must not be selected. No payment is processed.

Experience: Hosted or Embedded inline. In Embedded, an inline selector can open wallet management in a secondary Modal or Drawer. The selector itself is not a primary Modal or Drawer.

Payment Method Display (PAYMENT_METHOD_DISPLAY)​

Use when: A wallet customer needs to review one saved payment method without choosing a different one.

Requires: The saved, active, valid paymentMethod.id in the session request. See Create a Session.

What happens: The widget displays that method for review. The customer cannot change it or make a payment in this mode. If the method cannot be displayed, the widget shows a not-available state.

Experience: Embedded inline only.

Experience availability​

Use the Embedded Experience container matrix to choose a primary container and, where supported, a secondary container. A secondary Modal or Drawer is available only with an inline primary container.

FAQ​

How do merchants learn that a Hosted selection or other action finished? Poll the session status URL returned when the session is created. See Hosted Experience and Create a Session β€” Status Handling.

What is the difference between Select and Display? PAYMENT_METHOD_SELECT lets a customer choose an eligible saved method; PAYMENT_METHOD_DISPLAY shows one specified method for review in Embedded inline. Neither mode processes a payment.