Type Alias HadawiClientConfig

HadawiClientConfig: { apiKey: string; webhookSecret?: string } & HadawiEnvConfig

Type declaration

  • apiKey: string

    API key obtained from the Hadawi merchant dashboard.

  • OptionalwebhookSecret?: string

    Per-merchant webhook signing secret (whsec_…) from the Hadawi dashboard (Developer → Webhook → Reveal). Issued by Hadawi — not chosen by the merchant. Required to use hadawi.webhooks.constructEvent().