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β
- Event received β Stripe emits a dispute event (e.g.,
charge.dispute.created). - Event mapping β CCG maps the Stripe event type to a CCG event type (see Stripe Event Mapping).
- Payload transformation β CCG enriches the payload with CCG identifiers (
paymentId,paymentAllocationId,merchantTransactionId). No dispute state is stored. - Webhook publication β CCG publishes the dispute webhook to the configured merchant endpoint.
- 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
statusfield 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 Type | Stripe Source Event |
|---|---|
DISPUTE_INITIATED | charge.dispute.created |
DISPUTE_FUNDS_WITHDRAWN | charge.dispute.funds_withdrawn |
DISPUTE_WON | charge.dispute.funds_reinstated |
DISPUTE_CLOSED | charge.dispute.closed |