Receive Webhooks
Configure Ramp webhooks and handle delayed, duplicated or out-of-order payment events alongside authenticated status checks.
Webhooks notify your server when a payment changes state. They complement authenticated status checks; they can arrive late, more than once, or out of order.
Set up your endpoint
Create an HTTPS endpoint on your server.
Configure its URL for the correct TEST or LIVE environment using Setup webhook. Webhook configuration uses a business-user JWT and an authorized business role, not an API key.
Verify
x-ivorypay-signatureusing the environment's secret API key. Use the tested Node.js or Python examples.Save the verified event to durable storage or a durable queue, then return HTTP 200. If saving fails, do not acknowledge it.
Envelope
{
"event": "onramp.success",
"data": {
"reference": "550e8400-e29b-41d4-a716-446655440000",
"status": "SUCCESS"
}
}This is a shortened example; see Event payloads for each event's fields. The signature covers compact JSON data, not the outer event label or complete request body.
Delivery and recovery
HTTP responses other than 200 are treated as delivery failures and may be retried. Do not depend on exact retry timing or webhooks as your only recovery path. Reconcile transactions that remain pending using their saved references.
Deduplicate the same event/status, and separately enforce one fulfilment per order. Deduplicating only by reference would discard later status changes for that same payment. Keep safe event IDs, references, statuses and processing results for troubleshooting; avoid logging credentials or full customer payloads.
Last updated