Skip to content

Paddle billing webhook handlers one active sub - #6917

Closed
aerosol wants to merge 2 commits into
paddle-billing-webhooks-handlersfrom
paddle-billing-webhook-handlers-one-active-sub
Closed

aerosol wants to merge 2 commits into
paddle-billing-webhooks-handlersfrom
paddle-billing-webhook-handlers-one-active-sub

Conversation

@aerosol

@aerosol aerosol commented Nov 25, 2026

Copy link
Copy Markdown
Member

No description provided.

A team had one billing_subscriptions row, whatever its status. A new
subscription replaced the previous one. The previous subscription's
later webhooks then found no row.

Only one subscription per team can be live (active, past due or paused),
so enforce that with a partial unique index. A cancelled subscription can
stay next to a new one while it runs out. The all_subscriptions view
returns the latest Billing subscription of a team, like it does for
Classic.
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.

1 participant