RevenueCat
Automatically create RevenueCat customers and link Stripe subscriptions when purchases are completed through AppFunnel. This enables RevenueCat’s subscription analytics, charts, and experiments alongside your Stripe data.
RevenueCat does not handle checkout. AppFunnel manages the entire payment flow via Stripe, then syncs the result to RevenueCat after the purchase completes.
What It Does
- Creates a RevenueCat customer when a purchase or subscription is completed. The customer is identified by their AppFunnel customer ID, with email linked as an attribute.
- Links the Stripe subscription to the RevenueCat customer by submitting the subscription ID or checkout session ID as a receipt token.
- Enables unified analytics — view subscription metrics, LTV charts, and cohort analysis in RevenueCat alongside your Stripe billing data.
Setup
Navigate to Settings > Integrations > RevenueCat in your project.
- Project ID: Your RevenueCat project ID, found in your RevenueCat dashboard under Project Settings.
- Secret API Key (V2): A V2 secret API key used to create customers. Generate one in RevenueCat > Project Settings > API Keys.
- Public API Key (V1): Your public/platform API key used to link Stripe purchases. Found in RevenueCat > Project Settings > API Keys.
Insert image: The RevenueCat integration settings page showing input fields for Project ID, Secret API Key (V2), and Public API Key (V1)
Stripe Configuration in RevenueCat
You must also connect Stripe to RevenueCat on RevenueCat’s side. Follow RevenueCat’s official guide:
RevenueCat Stripe Integration Docs
This ensures RevenueCat can read subscription data from your Stripe account and keep status in sync (renewals, cancellations, upgrades).
Events
RevenueCat listens to two AppFunnel events:
| AppFunnel Event | What Happens |
|---|---|
purchase.complete | Creates RevenueCat customer (if not exists) and links the Stripe purchase |
subscription.created | Creates RevenueCat customer (if not exists) and links the Stripe subscription |
If the customer already exists in RevenueCat (e.g., from a previous purchase), the creation step is skipped and only the purchase linking is performed.
How Purchase Linking Works
When a purchase completes in AppFunnel:
- AppFunnel creates a customer in RevenueCat using the V2 API, setting the
appfunnel_customer_idattribute and the customer’s email. - AppFunnel sends the Stripe subscription ID (or checkout session ID) to RevenueCat’s receipts endpoint using the V1 API with the
stripeplatform header. - RevenueCat associates the Stripe subscription with the customer, enabling subscription tracking in the RevenueCat dashboard.
Both the Secret API Key (V2) and Public API Key (V1) are required. The V2 key creates customers, and the V1 key links purchases. The integration will fail if either is missing or invalid.