Create test inbox

PaymentKits guide · 6 min read

Debug webhooks without copying production data

A practical workflow for reproducing signatures, ordering and retries with synthetic fixtures.

Start with the event contract

Write down the event name, header format, body shape and expected response. Build a small synthetic fixture that resembles the contract but has no customer, card or account information.

Verify the exact bytes

Most signature failures are caused by a body being parsed, re-serialized or altered before verification. Capture the raw test payload, then check the provider's timestamp and signature recipe against it.

Exercise outcome states

Send success, retry and out-of-order fixtures through your handler. A reliable webhook consumer can safely handle duplication, delayed delivery and a non-2xx response without guessing.