Checking access…

Skip to main content
Audience: CCG Platform Engineers

V2 Implementations — Engineering Guide

This is the entry point for the whole V2 engineering guide — start here if you're new to V2, then jump to the role table below (Who This Guide Is For) to find the right starting doc for your work.

Purpose​

This overview is the starting point for engineers building, maintaining, or extending documented V2 implementations across the Convenient Checkout platform. It links to cross-service standards, the shared commons library, and the V2 domain guides available today.

Use the domain index to find the implementation guide for a specific flow and the sections below for shared patterns and architecture decisions.

Who This Guide Is For​

RoleStart Here
Backend engineer — new to V2V1 vs V2 — What Changed and Why → Shared Standards → Commons Library → relevant domain section
Backend engineer — working on paymentsPayment Lifecycle States → Split-Tender Payment
Backend engineer — working on commons libraryCommons Library — Versioning & Deployment Strategy
QE / test engineerTesting Strategy + API Design Conventions + relevant domain section
Reviewing a PRCoding Standards + Error Strategy + relevant domain section
Investigating a production issueTroubleshooting → Observability

Platform Ecosystem​

The Convenient Checkout platform is a microservices architecture. See the Service Catalog for the full service inventory, ownership, and integration patterns.

V2 Shared Standards​

These apply to all domains and all services. Every v2 implementation must comply:

StandardWhat It GovernsKey Rule
V1 vs V2 GuideWhat changed, migration checklist, side-by-side comparisonsRead this first if coming from V1
Coding StandardsPackage structure, Lombok, Reactor, constants, exceptions, JavadocNo magic strings, no .block(), no swallowed exceptions
API Design ConventionsURL patterns, HTTP methods, status codes, request/response envelopesResources as plural nouns, 202 for async, amounts in cents
Security & ComplianceData protection, OAuth2 scopes, data masking, audit trailsNever log sensitive data; all state transitions audited
Commons LibraryShared DTOs, enums, events, versioning & deployment strategyAll cross-service contracts live in wallet-event-commons; V1 and V2 packages coexist during migration
Error HandlingError taxonomy, Problem DTO, error propagationUse ErrorGroup enum; 400/422/500 classification
V2 Endpoint Environment ControlsOperation readiness, routing, and @V2NotImplemented stubsV2 is available in production; confirm each operation and merchant enablement; stubs return 501 where routed
TestingTest pyramid, coverage, namingUnit + Integration + Contract tests on every PR
ObservabilityLogging, monitoring, alerting, dashboardsAzure Application Insights + Splunk; structured JSON logs

Domain Guides​

Each domain has its own section covering domain-specific flows, data models, API contracts, and webhook events:

DomainServiceStatus
Paymentswallet-payment-serviceArchitecture, idempotency, and flows documented
Customerswallet-customer-serviceShared customer data handling and customer creation flow documented
Merchantswallet-merchant-service🔲 Planned
Reportingwallet-reporting-service🔲 Planned
Sessionswallet-auth-serviceVendor config session contract authored; other flows planned
Disputeswallet-payment-serviceShared V1/V2 processing documented
Notificationswallet-notification-service🔲 Planned

V2 API Inventory​

MethodPathDomainOperation
POST/v2/paymentsPaymentsCreate payment (single or split-tender)
GET/v2/payments?merchantTransactionId={id}PaymentsGet payment by merchant ID
GET/v2/payments/{paymentId}PaymentsGet payment by platform ID
PATCH/v2/payments/{paymentId}/cancelPaymentsCancel a payment
PATCH/v2/payments/{paymentId}/capturePaymentsCapture a pre-authorized payment
POST/v2/token/paymentsPayments (Token)Create payment with raw card token
POST/v2/refundsPaymentsCreate a refund
GET/v2/refunds/{refund-id}PaymentsGet refund status
POST/v2/sessionsSessionsCreate checkout session
GET/v2/sessions/{sessionId}SessionsGet session details
GET/v2/checkout-sessions/{checkoutSessionId}Checkout SessionsGet checkout session status
PATCH/v2/checkout-sessions/{checkoutSessionId}Checkout SessionsUpdate checkout session (operation-based)
PATCH/v2/checkout-sessions/{checkoutSessionId}/cancelCheckout SessionsCancel checkout session
POST/v2/checkout-sessions/{checkoutSessionId}/child-sessionsCheckout SessionsCreate child session

Current State vs. Target State​

For current-versus-target tracking per area (commons coexistence, error model, test coverage, observability, and more), along with migration paths and priorities, see the Improvement Roadmap.

How This Guide Is Organized​

The Engineering Guide groups V1 and V2 pages by domain. Start with Engineering Standards & Practices for V2 standards, the commons library, and testing guidance, then open the domain index to find the V2 flow you are working on. Operate and troubleshoot and the improvement roadmap cover investigation and planned changes.

ResourceLink
Payment API Reference (OpenAPI)API Reference V2
Webhook ReferenceWebhooks V2
Payment Error CodesError Codes
Business Guide — PaymentsBusiness Payments
Test Scenarios & DataTest Cards