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 value | Customer goal | Customer context | Processes a payment? | Experience |
|---|---|---|---|---|
PAYMENT_METHOD_ENTRY | Save a card or bank account | Wallet customer | No | Hosted or Embedded |
PAYMENT | Make a one-time payment | Guest or wallet customer | Yes | Hosted or Embedded |
PAYMENT_WITH_WALLET | Pay with a saved method | Wallet customer | Yes | Hosted or Embedded |
WALLET | Add, edit, or remove saved methods | Wallet customer | No | Hosted or Embedded |
PAYMENT_METHOD_SELECT | Choose a saved method without paying | Wallet customer | No | Hosted or Embedded |
PAYMENT_METHOD_DISPLAY | Review one saved method | Wallet customer | No | Embedded 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.
Related documentationβ
- Create a Session β configure
config.modesand check session status - Sessions reference β mode catalog, configuration fields, and statuses
- Embedded Experience β primary and secondary containers
- Hosted Experience β hosted launch and status handling