Callbacks and Webhooks
Configure merchant callbacks and webhook handling so payment lifecycle events are delivered reliably and verifiably.
Merchant webhook delivery headers
x-lc-pay-signatureโ HMAC-SHA256 signaturex-lc-pay-event-idโ unique event idx-lc-pay-event-typeโ event typex-lc-pay-idempotency-keyโ dedupe keyx-lc-pay-timestampโ signed timestamp
Signature verification
Message format for signature validation:
{timestamp}.{rawJsonPayload} Retry and dead-letter lifecycle
pending โ deliveredfor successful attempts.pending/failed โ failedwhen retry is scheduled.failed โ dead_letterafter max attempts/permanent 4xx.
Operational endpoints
GET /api/cron/process-merchant-webhooksin Pay for scheduled deliveryGET /api/admin/merchant-webhooksfor counts and queue visibilityPOST /api/admin/merchant-webhooksto requeue specific events