Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.5 KB
Raw Blame
# Stripe Mock Configuration
# ========================
# All values below show defaults. Uncomment and modify to customize.
# Changes take effect on restart (uvicorn --reload picks up file changes).
# See CONFIG.md for detailed documentation of each option.

# --- Data generation timeline ---
# start_date: "2024-03-01"
# end_date: "2026-03-01"
# seed: 42

# --- Metadata (injected into the metadata field of each object type) ---
# customer_metadata:
#   source: "stripe-mock"
#   environment: "development"
# subscription_metadata:
#   posthog_person_distinct_id: "your_distinct_id"
# charge_metadata: {}

# --- Customer persona distribution (count per type) ---
# customer_types:
#   loyalists_monthly: 12
#   loyalists_annual: 6
#   churners: 8
#   resubscribers: 1
#   upgraders: 1
#   downgraders: 1
#   interval_switchers: 1
#   coupon_users: 3
#   multi_currency_eur: 5
#   multi_currency_gbp: 2
#   multi_currency_jpy: 3
#   refund_recipients: 3
#   trial_users: 2
#   late_joiners: 11
#   edge_combos: 1

# --- Behavioral parameters ---
# churn_months: [1, 2, 3, 4, 5, 6, 7, 9]
# trial_days: [7, 14]
# late_joiner_offsets: [1, 3, 4, 6, 7, 9, 10, 12, 15, 18, 20]
# payout_frequency_months: 1
# stripe_fee_percent: 2.9
# stripe_fee_fixed_cents: 30

# --- Error injection ---
# Uncomment to make specific routes return errors for resiliency testing.
# errors:
#   "/v1/charges":
#     status: 500
#     message: "Internal server error"
#     rate: 1.0
#   "/v1/customers/search":
#     status: 429
#     message: "Rate limit exceeded"
#     rate: 0.5