💡 Subscription Lifecycle Integration
  1. Authentication: Go to Auth Testing → Generate JWT token
  2. Purchase: Use JWT to create Stripe checkout session → User pays
  3. Webhook: Stripe sends webhook event → Saves subscription to DB → Forwards to RevenueCat
  4. Activation: RevenueCat webhook receives event → Activates subscription
  5. Cancellation: Use JWT to cancel subscription → Stripe webhook updates DB

Create Checkout Session

Create a Stripe checkout session for subscription payment

Required for authentication
Stripe price ID for the subscription plan
Return URL after payment
Stripe promotion code
✓ Session Created Successfully
MOCKED MODE

This is a simulated session. No real Stripe API calls were made.

PRODUCTION MODE

Real Stripe checkout session created. User can complete payment.

Stripe Webhook Simulator

Simulate Stripe webhook events for testing subscription lifecycle

User ID for the subscription event
Note: In mocked mode, simulates Stripe webhook processing without real Stripe signature verification or database writes.
✓ Webhook Processed
MOCKED MODE

Simulated webhook processing. No real DB/Stripe calls made.

Cancel Subscription

Cancel user's subscription (at end of billing period)

Required for authentication
Note: In mocked mode, simulates finding subscription and calling Stripe API. Subscription remains active until end of billing period.
✓ Subscription Cancelled
Cancel at Period End: true
MOCKED MODE

Simulated cancellation. No real Stripe/DB calls made.

PRODUCTION MODE

Subscription canceled in Stripe. User can access until period ends.

Request Information

JWT Token Info

Paste a token to see decoded information

User ID: -
Expires: -

Stripe Configuration

Data that will be sent to Stripe

Customer Metadata:
userId: -
Checkout Session:
price: -
success_url: -
cancel_url: -
promo_code: -