Setup the payment module
The module includes all the setup to make payments for Android, iOS and Web using RevenueCat and LemonSqueezy. Including a trial and a paywall screens, services for RevenueCat and LemonSqueezy, and a payment function for each of those via WebHooks.
Main Flow:
- Fetch products from RevenueCat or Firebase for web
- Show a paywall screen
- User purchases
- Reveneuce Cat or LemonSqueezy SDK handles it
- Returns results and UI is shown to user
- WebHook is fired and Firebase is updated (user claims and store)
- App refreshes user token and gets new claims.