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.
| Status | Description |
|---|---|
| ACCEPTED | Session initiated, not ready for processing |
| CREATED | Ready for processing (e.g., payment, add method) |
| COMPLETED | Transaction successful (payment, method added, etc.) |
| error | Invalid 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β
| Capability | Hosted | Embedded 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"] }
}
Related Documentationβ
- Sessions API β Session creation, mode configuration, and full request payloads
- Integration Overview
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.