Webhooks
Receive real-time event notifications for payment lifecycle changes.
Webhooks tell you that something changed. Treat each one as a trigger and read the current state from the API before you act on it. One event is the exception: after hpp_session.payment_unresolved the session still reads PENDING, and later EXPIRED, so act on the event and do not ask the payer to pay again (see Hosted Payment Page). For settlement, build on the batch's state (see Settlements). Delivery can be delayed, and only a delivery listed in your endpoint's delivery log can be redelivered, so reconcile against the API as well.
How Cresora delivers webhooks
- You register an HTTPS endpoint URL in the Partner Portal
- Cresora delivers a signed POST request for each event
- Your server verifies the HMAC-SHA256 signature
- Your server returns
2xxwithin 30 seconds - Cresora retries most non-
2xxresponses on a fixed ladder
Retry schedule
| Attempt | Delay |
|---|---|
| 1st retry | 30 seconds |
| 2nd retry | 5 minutes |
| 3rd retry | 30 minutes |
| Window | 4 attempts, roughly 35 minutes total |
After the 3rd retry the delivery is recorded EXHAUSTED and Cresora stops. No webhook or email is sent; a Webhook delivery failing notification appears under Notifications in your Partner Portal. Recovery is on you, via the delivery log or reconciliation. See Retry handling and Failed deliveries.
The retry window is minutes, not days. Plan for reconciliation: an outage or deploy longer than ~35 minutes exhausts the deliveries in that window, and sustained failures can get the endpoint suspended without notice. Later events then raise no notification and, unless the endpoint is limited to specific merchants, leave no record in its delivery log (only retries already pending when it was suspended are recorded, as SKIPPED_SUSPENDED). Before you fix or resume the endpoint, check its settings as When Cresora suspends an endpoint describes and, if it is suspended, ask support to resume it as that section describes. Then redeliver from the delivery log, within the hourly replay limit, and reconcile the rest against the API, from when deliveries started failing until they succeed again, including any time it is suspended again; ask support for anything the API cannot show.
Reject deliveries with a timestamp older than 5 minutes — this protects against replay attacks. Check the X-Cresora-Timestamp header.
Webhook delivery stats
Cresora tracks delivery success rate per endpoint, and suspends an endpoint when, over 24 hours, Cresora has made at least 50 attempts to deliver to it, with a failure rate above 90%. You are not alerted when this happens — no event and no email is sent, and resuming the endpoint is manual. See Failed deliveries.