Setup
Open API Keys & Webhooks settings
Go to the Paystack Dashboard and navigate to Settings → API Keys & Webhooks.
Paste your Hookdrop URL
In the Webhook URL field, enter your capture URL:Replace
{your-token} with the token shown on your Hookdrop dashboard.Paystack supports one webhook URL per account (live and test environments each have their own). Make sure you set the URL in the correct environment — use your test-mode secret key and Hookdrop URL together when building.
Common events
| Event | When it fires |
|---|---|
charge.success | A payment completes successfully |
transfer.success | A transfer to a recipient completes |
subscription.create | A new subscription is created |
invoice.create | A subscription invoice is generated |
Signature verification
Paystack signs every webhook request with anX-Paystack-Signature header containing an HMAC SHA-512 hex digest. Verify it in your handler before processing any event.
paystack-webhook.ts
secret parameter. Find it in Paystack Dashboard → Settings → API Keys & Webhooks.
Testing locally
Back to quickstart
Return to the quickstart guide to set up your first Hookdrop endpoint.
