Skip to content

fix(cloud): carry creator referrals on Stripe Checkout Sessions - #524

Merged
PascaleBeier merged 1 commit into
mainfrom
fix/stripe-checkout-referral
Dec 2, 2026
Merged

PascaleBeier merged 1 commit into
mainfrom
fix/stripe-checkout-referral

Conversation

@PascaleBeier

Copy link
Copy Markdown
Collaborator

HitKeep Cloud now sends a referred team's stored click ID as the Stripe Checkout Session's client_reference_id. The subscription retains the same ID in metadata.sc_click for subsequent billing events. Signups without a referral continue to omit both fields.

When a referred team restarts checkout, an open session created before this fix may lack the reference. HitKeep expires that session before creating a replacement and reuses the replacement on retries.

The Stripe wire test checks the outgoing reference and its value when reading a session back. The checkout reuse test covers replacing a legacy session and retrying the replacement. The public signup API and the existing privacy disclosure already describe the referral data sent to Stripe.

@PascaleBeier
PascaleBeier enabled auto-merge (squash) December 2, 2026 22:39
@PascaleBeier
PascaleBeier merged commit 34a3541 into main Dec 2, 2026
19 checks passed
@PascaleBeier
PascaleBeier deleted the fix/stripe-checkout-referral branch December 2, 2026 22:57
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