From 61c03c8f248c8749762fcebb53d354fb5d91f862 Mon Sep 17 00:00:00 2001 From: Kristina <7614497+khjrtbrg@users.noreply.github.com> Date: Mon, 22 Sep 2025 10:16:44 +0200 Subject: [PATCH] [web] update webhook event handlers for Stripe custom checkout (#28526) * do not emit subscription-started when status is incomplete * emit subscription-started when incomplete subscription transitions to active * do not emit subscription-expired when status is incomplete_expired * do not sync incomplete or incomplete_expired Stripe subscriptions * allow `incomplete*` status to better guard against syncing GitOrigin-RevId: 4e851f654dcb4bf356280197dd158e834175df12 --- services/web/types/subscription/dashboard/subscription.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/types/subscription/dashboard/subscription.ts b/services/web/types/subscription/dashboard/subscription.ts index 8ff63b2342..e4e6da36bd 100644 --- a/services/web/types/subscription/dashboard/subscription.ts +++ b/services/web/types/subscription/dashboard/subscription.ts @@ -14,6 +14,8 @@ export type SubscriptionState = | 'expired' | 'paused' | 'past_due' + | 'incomplete' + | 'incomplete_expired' // when puchasing a new add-on in recurly, we only need to provide the code export type PurchasingAddOnCode = {