Skip to main content
Configure an active webhook endpoint in your organization’s dashboard and save its signing secret on your server. Use a publicly reachable HTTPS URL; private and loopback destinations are blocked.

Events and headers

The current payment events are payment.confirmed, payment.underpaid, and payment.failed. The JSON body contains id, type, created, livemode, and data. Payment data includes intent_id, status, asset, chain, amount, amount_listed, credited_amount, reference, metadata, and transaction details.

Verify the raw bytes

The signature covers the timestamp, a period, and the exact raw HTTP body. Do not parse and re-serialize JSON before verification. Use the endpoint’s signing secret, not your API key.
For Django, pass request.body and request.headers.get("GoChameleon-Signature", ""). Reject invalid signatures before processing. Keep your server clock synchronized.

Process reliably

  1. Verify the signature, then parse JSON.
  2. Check livemode matches the integration environment.
  3. Match data.intent_id to a payment stored on your order. Verify the expected asset, amount, and confirmed status before fulfilling.
  4. Persist the event and order update atomically, or durably enqueue the event, before returning a successful 2xx response.
  5. Deduplicate retries using the event id or delivery ID. Also enforce once-only fulfillment per payment/order: manual replays and separate endpoints can produce new event IDs for the same payment.
Failed deliveries are retried. Your handler must tolerate duplicate events. Use the authenticated Retrieve a payment endpoint to reconcile any uncertain result.

Node.js / Express verification

In Express, register your webhook route with express.raw({ type: "application/json" }) before any JSON body parser. Pass the resulting Buffer to verifySignature, then parse JSON only after verification succeeds.

Replay a missed event

Inspect delivery history in the dashboard Webhooks page. The Replay a webhook API reference queues a fresh delivery to every active endpoint for a confirmed, underpaid, or failed payment. Pending and expired payments are not replayable.
Set the environment variables as shown in the quickstart and replace PAYMENT_ID. A successful replay returns HTTP 202 with event, queued, and delivery_ids. It does not perform a new payment.