Checking access…

Skip to main content
Audience: CCG Platform Engineers

Disputes β€” Processing

Platform engineers implementing or debugging dispute/chargeback processing. See the Disputes β€” Integration Guide for the merchant-facing contract this page backs.

Processing detail for the Disputes β€” Integration Guide developer page.

Disputes Processing Flow​

CCG is a stateless relay β€” it maps incoming Stripe webhook events to CCG event types and forwards them to the merchant endpoint. No dispute state is persisted in CCG.

Sequence Diagram​

Dispute Event Relay Flow

Processing Steps​

  1. Event received β€” Stripe emits a dispute event (e.g., charge.dispute.created).
  2. Event mapping β€” CCG maps the Stripe event type to a CCG event type (see Stripe Event Mapping).
  3. Payload transformation β€” CCG enriches the payload with CCG identifiers (paymentId, paymentAllocationId, merchantTransactionId). No dispute state is stored.
  4. Webhook publication β€” CCG publishes the dispute webhook to the configured merchant endpoint.
  5. Acknowledgement β€” Merchant responds with a 2xx to confirm receipt.

Processor-Specifics​

  • Stateless relay β€” CCG does not persist dispute records or maintain a dispute state machine. Each Stripe event is independently mapped and forwarded.
  • No status validation β€” CCG does not validate status transitions. The status field is passed through as-is from Stripe.
  • Vendor fields β€” Fields prefixed with vendor (e.g., vendorPaymentId, vendorDisputeId, vendorEventType) carry the original Stripe identifiers for traceability and debugging. These are not intended for merchant-facing display.

Stripe Event Mapping​

CCG Event TypeStripe Source Event
DISPUTE_INITIATEDcharge.dispute.created
DISPUTE_FUNDS_WITHDRAWNcharge.dispute.funds_withdrawn
DISPUTE_WONcharge.dispute.funds_reinstated
DISPUTE_CLOSEDcharge.dispute.closed