Checking access…

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

Sessions β€” Modes, Config & Status Reference

When to use this page

Looking up a session mode, a config field, a status value, or a session error code. For the integration walkthrough, see Create a Session.

Session Modes​

ModeDescription
PAYMENTOne-time payment via card, bank, or digital wallet. Default for guest users.
PAYMENT_WITH_WALLETPay using a saved method from the wallet. Default for signed-in users.
PAYMENT_METHOD_ENTRYAdd a new card or bank account to wallet β€” no payment is processed.
PAYMENT_METHOD_SELECTDisplay and select from saved payment methods β€” no payment is processed.
PAYMENT_METHOD_DISPLAYDisplay a specific payment method for review β€” no changes or payments allowed.
WALLETManage (add/edit/remove) wallet payment methods without processing a payment.

See Widget Capabilities for the full mode support matrix.

Full Config Object Reference​

Beyond modes, paymentMethodChannel, and vendors (covered on Create a Session and Configure Vendors), config supports these additional fields:

FieldTypeDefaultDescription
splitTender.enabledbooleanfalse / merchant settingEnables split-tender payment for this session. If omitted, defaults to the merchant's split-tender configuration.
cardCategories[]arraymerchant settingManufacturer-card (MF) categories and associated medications for this session. Only used when the Manufacturer Card feature is enabled. If omitted, defaults to the merchant's configured card categories. See Manufacturer Card for the payment-method-level details.
options.preferredLanguageen | esenPreferred display language for the checkout UI.
options.paymentMethodSaveModeALLOW_SAVE | DISABLE_SAVE | AUTO_SAVEALLOW_SAVEControls whether/how a payment method may be saved during checkout.
merchant.namestring (≀80 chars)merchant's onboarded nameCustom merchant display name shown in checkout notifications. Must not contain { } + = * ^ % # ~ \ < > ? | \ [ ]`.
merchant.merchantOriginstring (URL)β€”Origin (scheme, host, port) of the merchant page that opened the session. Required when your authentication strategy is IDP_REQUIRED β€” used to securely return payment results via postMessage. Omit for other authentication strategies.
uiVersionstring (pattern v[1-9]\d*)β€”Pins the UI version used in the hosted/short URL.
privacyPolicyUrlstring (URL)https://www.optum.com/privacy-policy.htmlMerchant privacy policy URL shown to the customer.
senderEmailAddressstring (email)no-reply@ccg.optum.comSender address for checkout-related notification emails.
merchantOrigin is security-relevant

If your merchant account uses IDP_REQUIRED authentication, omitting merchant.merchantOrigin breaks the secure postMessage return path for payment results. This isn't just a display setting β€” verify it's set correctly before going live on an IDP-required account.

Casing on paymentMethodChannel

The schema's V2PaymentMethodChannelsRequest properties are CARD / BANK_ACCOUNT. Existing sample requests on Create a Session show lowercase card / bankAccount keys. This needs verification against a live request before being treated as authoritative β€” if you've confirmed which casing the API actually accepts, flag it so this page can be corrected.

Session Lifecycle​

StatusDescription
ACCEPTEDSession created, initialization in progress
CREATEDSession ready; widget can be loaded
COMPLETEDTransaction succeeded (payment processed, method added, etc.)
FAILEDTransaction failed or an unrecoverable error occurred
EXPIREDSession timed out before the user completed the flow
CANCELEDSession was explicitly canceled

Common Error Codes​

For the full session error reference, see Session Error Codes.

Error TitleHTTP StatusCauseAction
INVALID_REQUEST400Missing required field or invalid valueCheck request body against the API Spec
UNAUTHORIZED401Invalid or expired JWT tokenRefresh your token and retry
MERCHANT_NOT_FOUND404X-Merchant-Id does not match an active merchantVerify merchant onboarding is complete
SESSION_TIMEOUT410Session expired before user completed the flowCreate a new session and retry
SESSION_ALREADY_PROCESSED409Session has already reached a terminal stateCreate a new session for the next transaction

API Response Fields​

FieldTypeDescription
checkoutSessionIdstringUUID; pass to the embedded widget as checkoutSessionId
hostedUrlstringFull URL; open as a popup for the hosted experience
urlstringSession status polling endpoint