Understanding Adapty Integration
Learn how FunnelFox communicates purchases with Adapty side
It is best to understand how FunnelFox communicates with Adapty, so that you can avoid any misunderstanding before release.
All communications can be divided into 3 actions:
- Creating Adapty profiles
- Granting access level to existing profile
- Revoking access level from existing profile
1. Creating Adapty profiles
FunnelFox creates a new Adapty profile, when user buys a subscription on your onboarding. Buying a consumable product will not create a new account.
So, as soon as user completes a checkout, new Adapty profile is created.
By default, this Adapty profile will be given a customerUserId
equal to their email. This will later allow you to identify this user in your application.
If you'd like to, you can change customerUserId
to any value. FunnelFox uses Adapty's internal user ID to notify about changes to profile.
2. Granting access level to existing profile
FunnelFox grants access level to an existing user, when user has completed a transaction associated with this subscription (initial subscription payment, successful recurrent payment, etc.)
Access level expiration date is defined by subscription period end.
By default, FunnelFox tries to grant premium
access level. You can provide custom access level in your checkout element.
3. Revoking access level from existing profile
FunnelFox revokes access level from an existing user, when user has cancelled or paused their subscription.
If payment is overdue, Adapty will expire access itself without any FunnelFox updates.
Updated about 2 months ago
Now that you understand how FunnelFox works with Adapty, you might want to learn how you can identify a web user in your application using Adapty.