Webhooks
If you need to receive CCG webhook events, start with this page.
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.
HSA designation webhooksβ
If you consume the customer-applied HSA designation, read hsaTagged from the existing events below. Enabling this capability does not introduce a new webhook event.
| Event group | Events carrying hsaTagged | How to interpret the value |
|---|---|---|
| Payment method | PAYMENT_METHOD_CREATED, PAYMENT_METHOD_UPDATED, PAYMENT_METHOD_DELETED, PAYMENT_METHOD_REPLACED | The wallet's current designation state. Use these events when reconciling saved methods. |
| Payment | PAYMENT_SUCCEEDED, PAYMENT_FAILED, PAYMENT_AUTHORIZED, PAYMENT_CANCELED, PAYMENT_ACCEPTED, PAYMENT_PARTIALLY_SUCCEEDED | A snapshot captured at payment time. |
| Refund | REFUND_SUCCESS, REFUND_FAILED, REFUND_PENDING, REFUND_PARTIAL_SUCCESS | The original payment's captured designation; it can remain true after the card is untagged. |
When a customer designates another card, the previous card is untagged. Treat an automatic-untag notification as provisional until you confirm current delivery and reconciliation behavior with your Optum Financial contact. Do not use payment or refund events to infer the wallet's current designation; use current payment-method data or events instead.
Dispute webhooks do not include hsaTagged; they carry paymentMethodType only. For response field paths, see HSA Designation Response Fields.
π InternalNot visible in the public site
The database commit and webhook publish are not atomic. The HSA-Tagged Payment Method Exclusivity HLD is still in review and describes this open gap; it is not an implementation contract.