ChangelogNo. 026

New feature

Signed webhooks you can verify

Type
New feature
Area
API
Shipped
Issue
No. 026 of 37

What changed

You can now verify that a webhook really came from PalPluss. Register the domains your callbacks go to on the new Webhooks page and PalPluss gives you a signing secret; every callback to those domains then carries Standard Webhooks signature headers you can check in a few lines of code. Callbacks to other addresses are sent exactly as before, so nothing breaks while you set it up.

  1. 01Add up to 10 callback domains on the Webhooks page and get a whsec_ signing secret.
  2. 02Callbacks to those domains include webhook-id, webhook-timestamp and webhook-signature headers.
  3. 03Copy verification code for Node.js, PHP or Python straight from the page.
  4. 04Rotate a secret at any time; the old one keeps working for 24 hours so you can update your server.
  5. 05Send a test webhook to check your setup before real payments arrive.

Share this update

Every update has its own poster. It shows up when you post the link.

Start building today.

Create an account and get KES 15 in free tokens to send your first live M‑Pesa STK Push in minutes.