Skip to main content
Version: v2

Webhook

Understanding Webhooks

A webhook is a way for an app or service to provide other apps or services with real-time information. It allows one application to notify another application or service about specific events or updates by sending a HTTP POST request to a specified URL when a certain event occurs. Webhooks are commonly used in various scenarios such as triggering actions in response to specific events, integrating different systems, and automating processes. They are commonly used in APIs and web services to facilitate communication and data exchange between different applications.

Advantages of Webhooks

The implementation of webhooks empowers CCG to promptly notify your system about transaction-related events. Upon the incidence of a specific event, such as a successful payment or a refund, your system receives instantaneous updates and can initiate appropriate responses tailored to the event, such as updating order statuses or dispatching confirmation emails to customers. Webhooks are instrumental in automating processes and ensuring that systems remain synchronized with the payment gateway.

Webhook workflow

The webhook workflow entails three primary participants: the provider, the consumer, and the event:

  • Provider: This is the application responsible for initiating an event and dispatching a notification to the consumer.
  • Consumer: Refers to the application that subscribes to and collects the notifications transmitted by the provider.
  • Event: Denotes an incident or particular action occurring within the provider application that serves as the trigger for the webhook.

CCG leverages webhooks to transmit notifications for payment transactions, refunds, dispute resolutions, and wallet management actions, encompassing the addition, modification, and removal of payment methods.