Skip to content

Upgrade project to .NET 10.0, refactor workflows, and enhance Stripe event handling - #1407

Merged
ardalis merged 3 commits into
mainfrom
ardalis/upgrade-packages-add-workflow
Jul 16, 2026
Merged

Upgrade project to .NET 10.0, refactor workflows, and enhance Stripe event handling#1407
ardalis merged 3 commits into
mainfrom
ardalis/upgrade-packages-add-workflow

Conversation

@ardalis

Copy link
Copy Markdown
Collaborator

No description provided.

@ardalis
ardalis merged commit 1e27219 into mainJul 16, 2026
3 checks passed
ardalis added a commit that referenced this pull request Aug 21, 2026
* Fix Stripe webhook endpoints returning 500s to Stripe
Stripe flagged https://devbetter.com/stripe-invoice-paid-web-hook/ as
failing. Investigation found three defects across the four Stripe
webhook endpoints:
- Missing Stripe-Signature header caused an uncaught
NullReferenceException (HTTP 500); now returns 400 with a message.
- Unexpected event types threw a bare Exception (HTTP 500); now logged
as a warning and acknowledged with 200 so Stripe does not retry.
- CustomerSubscriptionDeletedWebHook checked EventTypes.CustomerDeleted
(customer.deleted) instead of CustomerSubscriptionDeleted
(customer.subscription.deleted), so it rejected every event it was
subscribed to.
The root cause of Stripe's delivery failures is an API version
mismatch: Stripe.net 52.x rejects events whose api_version is not in
the dahlia family, and the dashboard webhook endpoints are pinned to an
older API version. That requires a dashboard change (see PR); the code
here keeps the strict version check since payload parsing was already
migrated to the dahlia shapes in #1407.
Adds signed-payload unit tests for all four endpoints.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* update skill
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for freeto 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.

1 participant

@ardalis