diff --git a/.changeset/shy-needles-push.md b/.changeset/shy-needles-push.md new file mode 100644 index 000000000..6e90db557 --- /dev/null +++ b/.changeset/shy-needles-push.md @@ -0,0 +1,5 @@ +--- +"@trigger.dev/stripe": patch +--- + +Fix SubtleCryptoProvider webhook validation diff --git a/integrations/stripe/src/index.ts b/integrations/stripe/src/index.ts index 327da7330..f59f56ffb 100644 --- a/integrations/stripe/src/index.ts +++ b/integrations/stripe/src/index.ts @@ -1151,7 +1151,7 @@ async function webhookHandler(event: HandlerEvent<"HTTP">, logger: Logger) { const stripeClient = new StripeClient("", { apiVersion: "2022-11-15" }); try { - const event = stripeClient.webhooks.constructEvent(rawBody, signature, source.secret); + const event = await stripeClient.webhooks.constructEventAsync(rawBody, signature, source.secret); return { events: [