Checking access…

Skip to main content
Audience: Consumers, CCG Platform Engineers

Widget Capabilities

If you need to choose a CCG Widget capability, start with this page.

Optum Wallet supports a single widget capability β€” paying with a saved wallet method. This page is your reference for integrating that experience.

Widget Experience Overview​

The widget provides a payment experience for returning customers using a method already saved in their wallet. Optum Wallet supports Hosted and Embedded modal experiences.

Session Lifecycle​

The widget experience is driven by a session created via the Sessions API. Poll the session endpoint to track status and update your UI accordingly.

StatusDescription
ACCEPTEDSession initiated, not ready for processing
CREATEDReady for processing (e.g., payment, add method)
COMPLETEDTransaction successful (payment, method added, etc.)
errorInvalid request, creation error, transaction failure, or timeout

Widget Containers & Modes​

Optum Wallet supports the Embedded modal container. The Hosted experience is also available.

Capabilities by Container Type​

CapabilityHostedEmbedded modal
Payment with walletβœ…βœ…

Payment With Wallet (PAYMENT_WITH_WALLET)​

Purpose: Let customers pay using any saved method in their wallet.

When to use: For returning users with stored payment methods.

Prerequisites:

  • Merchant account on CCG Platform
  • Valid merchantId for API requests

Supported Experiences: Hosted, Embedded

Example Session Request:

{
"payment": { "amount": 1500, "description": "...", ... },
"customer": { "enterpriseId": "...", "hsid": "...", ... },
"config": { "modes": ["PAYMENT_WITH_WALLET"] }
}

Explanation​

The widget is a modular UI component. In Optum Wallet, it is configured for a single use case β€” paying with a saved wallet method β€” in Hosted or Embedded modal experiences.

Frequently Asked Questions (FAQ)​

Q: What is the widget? A: It is a flexible, embeddable UI component that enables merchants to offer a saved-wallet payment experience to their customers.

Q: What widget mode does Optum Wallet support? A: PAYMENT_WITH_WALLET only β€” paying with a method already saved in the customer's wallet.

Q: What are the prerequisites for using the widget? A: Merchants must have a CCG Platform account, complete onboarding, and obtain a valid merchantId.

Q: What integration patterns are supported? A: Hosted and Embedded modal.

Q: What happens if an invalid customer identifier or payment method ID is provided? A: Session creation will fail with an error, or the widget will display a message such as "Payment Method Not Available."

PAYMENT_WITH_WALLET

  • Lets customers pay with any saved method. If no methods are saved, the widget prompts to add one.
  • Adding a duplicate card/bank updates the existing entry.

For more details, see the configuration and usage examples above, or refer to the Sessions API.