Direct-to-V2 Integration Steps
The prerequisite checklist and integration path (widget vs. API vs. checkout sessions) for your net-new V2 merchant β work through this once onboarding and processor setup are done.
This page covers integration for a net-new merchant β no existing V1 integration, no data migration involved. If you're upgrading an existing integration instead, see the V1 to V2 Migration Guide.
Prerequisitesβ
Before integrating, complete:
Credentials & Scopesβ
Your HCP registration grants your application the API scope(s) it needs. The required scopes depend on which V2 APIs your integration uses:
| Scope | Required for |
|---|---|
merchant | Sessions, Payments (capture/cancel), Refunds |
merchant-pci | Token-based PCI payment flows (/token/payments) only |
merchant-wallet-management | Payment Methods API β see the caution below before using |
The full scope identifiers per environment (e.g., financial/commerce/nonprodcheckout:merchant)
are listed in Authorization. Work with
your CCG onboarding contact to confirm which scopes to request during HCP registration.
API Base URLsβ
All V2 API calls go to one of these base URLs depending on your target environment:
| Environment | Base URL |
|---|---|
| Non-production | https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2 |
| Production | https://api.uhg.com/api/financial/commerce/checkout/v2 |
Append the operation path (e.g., /sessions, /payments) to the base URL for each request. The
OAuth token endpoint (https://api.uhg.com/oauth2/token) is the same in all environments.
Authenticationβ
V2 uses OAuth 2.0 client credentials flow. Every API request requires a Bearer token.
1. Request a token
POST https://api.uhg.com/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id=<your-client-id>
&client_secret=<your-client-secret>
&scope=<environment-scope>
Use scope financial/commerce/nonprodcheckout:merchant for non-production and
financial/commerce/checkout:merchant for production. Additional merchant scopes
(merchant-pci, merchant-wallet-management) follow the same naming pattern.
The response contains an access_token valid for 3600 seconds.
2. Include the token on every request
Authorization: Bearer <access_token>
X-Merchant-Id: <your-merchant-id> # required for merchant-scoped operations
X-Upstream-Env: <dev|stage|...> # required for non-production requests only
See Authorization for the full header reference, a complete scope list, and worked request/response examples.
Choose Your Integration Pathβ
| Path | Best for | Effort |
|---|---|---|
| UI Components (Widget) | Fastest path to production, standard checkout flows | Low β mostly frontend |
| Direct API Integration | Custom UI, full control over the checkout experience | High β backend & frontend |
Widget Integrationβ
Use the v3 Bootstrapper pattern β the current, actively-maintained widget integration β documented in the "v3" tab of the Embedded Experience guide.
Other pages in this docs set reference an older widget integration pattern (the "v2" tab on the same page, and the snippet on the general Getting Started with CCG page). As a net-new merchant, use the v3 pattern only β don't follow the v2 snippet.
Your backend must call POST /sessions using the V2 createSession operation (merchant scope). The curl example in the Embedded Experience guide setup section calls the V2 sessions path and can be used as a reference. Using a v1 session with the v3 widget produces undefined behaviour.
API Integration (merchant-backend)β
Build your own UI against the V2 API. The following merchant-backend operations require the
merchant scope and are confirmed available:
| Capability | Scope | Reference |
|---|---|---|
| Sessions | merchant | V2 API Reference |
| Payments (create/get intent) | merchant | V2 API Reference |
| Payments (capture/cancel) | merchant | V2 API Reference |
| Refunds | merchant | V2 API Reference |
| Split Tender Payments | merchant | Split Tender Payments API |
Widget-managed checkoutβ
The CCG widget manages Checkout Session operations. Your merchant integration creates a session
through the Sessions API and
integrates the checkout UI; it does not
call /v2/checkout-sessions/* directly.
Not every V2 operation is production-ready for every merchant. Before going live:
- Confirm that each operation you use is both production-available and enabled for your merchant
- Stage readiness must be validated separately β passing staging tests does not establish production access
-
π InternalNot visible in the public site
See V2 Environment Availability for the complete availability matrix
The V1 to V2 Capability Parity Matrix marks the Payment Methods and Token Flow V2 endpoints as having no blanket cross-version commitment and production readiness unconfirmed. If your integration needs stored-payment-method or tokenization flows, confirm current readiness with your CCG onboarding contact before building against them β don't assume production-readiness from this guide alone.
Webhooksβ
Configure webhooks per the Webhook Configuration guide.
Idempotent processing is required for all merchants. Retries fire on any non-2XX response not
in the non-retriable set (400, 401, 403, 404, 413), and on endpoint timeouts (no
response within 30 seconds) β exponential backoff, up to 5 attempts within a 50-minute window. Your
endpoint must handle duplicate deliveries without creating duplicate side effects. See
Error Handling & Retry Strategies
for the full policy.
As a net-new merchant, you do not need to handle mixed-version payload deduplication: that complexity only applies to merchants migrating from V1, who can receive both an old-shape and a new-shape event for the same transaction during coexistence. You will only ever receive the current V2 event shape.
Reportsβ
No special configuration is needed for V2 β see Reporting for setup. Reports work the same way regardless of adoption path.
Optional: Split Tenderβ
Split tender lets a customer divide one payment across two saved cards. It's off by default β ask your CCG onboarding contact to enable it if you need it, then follow the Split Tender Payments API guide.
Related Documentationβ
- Direct-to-V2 Onboarding
- Go-Live Checklist
- Embedded Experience Integration
-
π InternalNot visible in the public site
- V1 to V2 Capability Parity Matrix