Skip to main content
PayKit normalizes webhook events into a consistent set of typed events across all providers.

Setup

Standard events

Raw provider events

You can also listen to native provider events directly. These are prefixed with the provider name and fully typed:
Standard events and raw events can be mixed freely on the same webhook instance.

headersAsObject

webhook.handle expects headersAsObject as a plain Record<string, string>. Convert from your framework’s headers object using Object.fromEntries: