Fix · Payments
Payment webhook says invalid signature
Blocks your workNot checked against the vendor's current screens
What you may see
- My webhook route rejects the gateway's calls
Most likely cause
The signature is computed from the exact raw body and a shared secret; a changed body (parsed or reformatted) or the wrong secret breaks it.
Check first (about two minutes)
- Check you are using the secret of the right mode (test or live) for this webhook.
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Read how the gateway documents its signature (which header, which algorithm, which text is signed). Do not guess.
- Verify using the raw body before any JSON parsing, comparing in constant time.
- Check the webhook secret variable is the right one and has no stray spaces.
Do not do this
- Do not log the secret or the full signature header.
- Do not disable the signature check.