CCG Service Architecture and Flows
Engineers getting oriented on CCG service boundaries and end-to-end payment flows. For exact ownership, service APIs, and resilience details, see the Service Catalog.
Status: Draft β April 21, 2026 | Audience: Engineers and TPMs
Reviewer: ranga_chenna@optum.com
β οΈ This document is a work in progress and must be kept up to date as services evolve. Engineers making changes to service contracts, flows, or configurations are expected to reflect those changes here before merging.
Several services are marked "yet to be documented."
1. System Overviewβ
The Convenient Checkout Gateway (CCG) is a payment gateway that enables merchants to integrate a hosted checkout UI or API-first payment flows into their platforms. It supports one-time payments, saved payment methods (pay-and-save), split-tender transactions, refunds, and reporting.
Architectural Styleβ
CCG uses a hybrid architecture combining three integration patterns:
| Pattern | Used For |
|---|---|
| Synchronous REST | Real-time payment, session, and customer operations |
| Event-driven | Merchant configuration propagation and outbound webhook notifications |
| File-based ingestion | customer and Payment method migration from other payment gateways |
Key Integration Patternsβ
- Merchants integrate via a widget (UI) initialized through
wallet-auth-service, or directly via the API. - Payment orchestration is owned by
wallet-payment-service, which delegates processor-level operations towallet-stripe-adapter-service. - Merchant configuration changes and payment events are propagated outbound as webhooks via
wallet-merchant-service.
3. End-to-End Payment Flowβ
The sections below trace the most common flows across CCG services.
For UI-based flows, session management is a shared prerequisite and is documented once in a common flow. For Direct API flows, the same business operations are available without widget session bootstrap.
| Flow | UI (Widget) | Direct API |
|---|---|---|
| Session management | Yes | Not required |
| Pay with wallet | Yes | Yes |
| One-time pay / pay-and-save | Yes | Yes |
| Wallet/payment method management | Yes | Yes |
| Refund | No | Yes |