Stripe Subscription Test

End-to-end verification: simulate checkout events, then confirm feature gates unlock correctly per tier.

Current Subscription

Simulate Stripe Events

Feature Gate Verification

Calls checkTierAccess for every feature to confirm your current tier unlocks the right things.

Create a subscription first, then run the feature check.

Tiers:developerstartupgrowthenterprise
Live Stripe Checkout Flow
โ†’
1. User clicks "Subscribe": Pricing page โ†’ createCheckoutSession โ†’ Stripe hosted page
โ†’
2. Payment completes: Stripe fires checkout.session.completed webhook โ†’ stripe-webhook function
โ†’
3. Webhook creates Subscription record: Maps product ID โ†’ tier, writes to Subscription entity with status: active
โ†’
4. User lands on /payment-success: Page calls createSubscriptionFromCheckout (idempotent fallback) โ†’ confirms tier
โ†’
5. Feature gates check Subscription entity: useSubscriptionTier hook + checkTierAccess backend function