Strike Webhooks
Payment notifications travel in two hops. Lightning Enable handles the first; you configure the second.
Strike ──(1)──▶ Lightning Enable ──(2)──▶ Your callback URL
| Hop | Who configures it | What it carries |
|---|---|---|
| 1. Strike → Lightning Enable | Lightning Enable, automatically | A thin notification with an entity ID |
| 2. Lightning Enable → you | You, with the merchant API | Full payment detail, HMAC signed |
Hop 1: Strike to Lightning Enable
You do not configure this hop. Lightning Enable registers a webhook subscription on your Strike account the first time it creates an invoice for you, which is why your key needs the partner.webhooks.manage scope.
Lightning Enable stores the resulting subscription ID and a per-merchant signing secret so it can verify that incoming notifications genuinely came from Strike.
A Strike webhook carries an entity ID, not the payment itself. Lightning Enable calls the Strike API to fetch the full details before acting on it. This is the main behavioral difference from OpenNode, whose webhooks carry the full payload.
The endpoint that receives these notifications is POST /api/webhooks/strike. It is public by necessity — Strike must reach it — and it authenticates every request by signature rather than by API key.
Hop 2: Lightning Enable to Your Platform
This is the hop you configure. Set a callback URL and Lightning Enable posts signed payment events to it.
Set Your Callback URL and Secret
Set both with the merchant API. Generate the secret yourself (for example, openssl rand -hex 32) and keep a copy. Lightning Enable never returns it, and your account's initial secret is not readable, so set your own to verify signatures.
curl -X PUT https://api.lightningenable.com/api/merchant/webhook-url -H "X-API-Key: your-merchant-api-key" -H "Content-Type: application/json" -d '{
"webhookUrl": "https://your-platform.example.com/webhooks/lightning-enable",
"webhookSecret": "your-webhook-secret"
}'
Your endpoint must accept POST, be reachable over HTTPS, and return a 2xx status quickly. Do the slow work after you respond.
Verify the Signature
Every forwarded webhook carries an X-LightningEnable-Signature header:
X-LightningEnable-Signature: t=1735689600,v1=5257a869e7bcd6742a1f2c...
t is a Unix timestamp and v1 is an HMAC-SHA256 signature over {t}.{raw_body}.
Use the reference verifiers in Verifying Webhooks (Node.js, C#, Python). The common mistakes:
- Enforce timestamp freshness. Signature validity alone does not stop a replay. Reject requests whose
tfalls outside the tolerance given under Replay Protection. - Compare in constant time. Use
CryptographicOperations.FixedTimeEqualsor your language's equivalent. A plain==returns on the first mismatched byte and leaks the expected signature to anyone measuring response times. - Parse the header defensively. Do not index into
split(',')positionally. A malformed or hostile header should be rejected, not throw an unhandled exception out of your public endpoint.
Use the Raw Body
Compute the signature over the exact bytes you received. If your framework parses the JSON and you re-serialize it, key order or whitespace can change and the signature will not match. Capture the raw body before parsing.
Idempotency
Retries and network conditions mean the same event can arrive more than once. Key your handler on the payment or invoice identifier and make repeat deliveries a no-op. Do not assume exactly-once delivery.
Troubleshooting
No Webhooks Arrive from Strike
- Confirm your Strike API key has the
partner.webhooks.managescope - Check the Strike dashboard for a webhook subscription
- Re-save your Strike key, then create another payment. Saving a key clears the stored subscription, so the next invoice registers a fresh one.
Webhooks Arrive but Signature Checks Fail
- Confirm you are hashing the raw body, not a re-serialized version
- Confirm the signed payload is
{timestamp}.{body}, not the body alone - Confirm you are using the
webhookSecretyou set onPUT /api/merchant/webhook-url, not your Strike API key. Your account starts with a generated secret that no endpoint returns, so set your own. - Compare the hex encoding — the signature is lowercase hex, not Base64
Your Endpoint Times Out
Return 2xx first and process afterward. Slow handlers look like failures and trigger retries.
Next Steps
- Testing — Confirm the full path with a real payment
- Webhooks API Reference — Full event payloads and retry behavior
- API Keys — Scopes and rotation