Scenario:
- User installs application
- User makes a purchase
- User creates an account, logs in, and then calls identify on RevenueCat
- User restores purchases to transfer purchases to newly created account
Expect Series of Webhook Events
- INITIAL_PURCHASE event is sent to webhook upon completing step 2.
- TRANSFER event is sent to webhook upon completing step 4.
Actual Series of Webhook Events
- INITIAL_PURCHASE event is sent to webhook upon completing step 2.
Use Case:
Given that a user can make a subscription before creating an account, we rely on the RevenueCat webhook to give us a Transfer event when a user restores purchases after creating their account. This allows us to use our server to update the user in our database with the current product they are subscribed to.