Skip to content

Conversation

@arthurfiorette
Copy link
Contributor

@arthurfiorette arthurfiorette commented Dec 15, 2025

This PR adds support for Stripe's v2 thin events via @StripeThinWebhookHandler decorator.

Previously, with #1087 I've added a way to handle those, but now stripe requires a separate webhook for those, so I've created @StripeThinWebhookHandler and refactored a bit of the code to support both webhook types.

The webhook controller now accepts a ?mode=thin query parameter to route thin events to their handlers, while snapshot events continue to work as before with no breaking changes.

Tests and docs were also updated.

https://docs.stripe.com/event-destinations#events-overview

@arthurfiorette
Copy link
Contributor Author

While this PR isn't merged/released, I'm releasing @arthurfiorette/golevelup-nestjs-stripe. Once it gets released, I'll deprecate that package.

Copy link
Collaborator

@underfisk underfisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestions but LGTM overall

@underfisk underfisk merged commit 366acee into golevelup:master Dec 16, 2025
2 checks passed
@underfisk
Copy link
Collaborator

Available in the new version 0.11.0
Thanks for the feature, LMK if there's any issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants