Checking access…

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

Enable Split Tender in a Session

When to use this page

Turning on split-tender (two-card) payments for a checkout session. For the direct-API split-tender walkthrough (CCG only — not available to Optum Wallet), see Split Tender Payments API. For the exact response shape, status mapping, and errors once a split-tender payment exists, see Payment — Status & Response Reference.

Split tender is a session-level (widget) capability — the customer picks two saved cards and distributes the amount between them interactively in the checkout UI. This is the only split-tender path available to Optum Wallet: there is no direct-API split-tender creation for OW, since POST v2/payments with two allocations is a CCG-only integration path.

Merchant-level configuration is a prerequisite

config.splitTender.enabled only turns split tender on for a given session — it does not turn split tender on for a merchant that isn't already configured for it. The merchant's own split-tender capability must be enabled first (see Capability Enablement Requirements); without that, the session-level flag has no effect, and when omitted the session simply falls back to the merchant's (disabled) default.

Enable it on the session​

Set config.splitTender.enabled: true when creating the session (POST v2/sessions). See Full Config Object Reference for the field's type and default — if omitted, it defaults to the merchant's own split-tender configuration.

Two other conditions have to hold for the split-tender UI to actually appear:

  • Mode: Use PAYMENT_WITH_WALLET — the customer must already have saved cards to split a payment across. See Session Modes.
  • Sale, not pre-auth: payment.authorizeCard must be false or omitted. Setting authorizeCard: true is an eligibility condition, not a validation error — the session simply won't surface the split-tender UI, since split tender requires a sale payment flow.
Sample Request — Session with split tender enabled
curl -X POST "https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2/sessions" \
-H "Authorization: Bearer <token>" \
-H "X-Merchant-Id: <merchant-id>" \
-H "X-Upstream-Env: dev" \
-H "Content-Type: application/json" \
-d '{
"customer": {
"hsid": "<customer-hsid>"
},
"payment": {
"merchantTransactionId": "<unique-id>",
"amount": 1500,
"authorizeCard": false
},
"config": {
"modes": ["PAYMENT_WITH_WALLET"],
"splitTender": {
"enabled": true
}
}
}'

See Create a Session for the rest of the request/response contract — this config.splitTender block is additive to a normal session request, not a separate endpoint.

Read the result​

The session widget creates the underlying split-tender payment for you — you don't construct the paymentAllocations array yourself (that's the direct-API path, not available here). Read the allocation-level detail the same way for any product:

  • Poll GET /v2/sessions/{sessionId} — its payment object carries the same paymentAllocations[] array a direct Payments API response would. See Polling for Payment Details.
  • Or poll GET /v2/payments/{paymentId} directly once you have the paymentId.
  • Or handle payment webhooks — PAYMENT_SUCCEEDED / PAYMENT_FAILED cover split-tender payments the same way they cover single-allocation ones.
  • For the exact response shape, status mapping (including rollback), webhook events, and split-tender-specific errors, see Payment — Status & Response Reference → Split Tender Payments.