verify-webhook

command
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Verify a FastPix webhook signature before trusting the payload.

FastPix signs the raw request body with your webhook Signing Secret (Dashboard > Webhooks) and sends it as a Base64 HMAC-SHA256 in the "FastPix-Signature" header. The Signing Secret is itself Base64-encoded, so sign with its decoded bytes as the key. Verify the body exactly as received: parsing and re-serializing changes the bytes and the signature won't match.

Run:

go run ./examples/verify-webhook

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL