Hello RevenueCat Team,
I have implemented subscriptions on my website with monthly and yearly plans. Once a user purchases a plan, they can upgrade or downgrade to another plan. This is currently handled using RevenueCat Web Billing.
However, Web Billing does not provide a flow like the App Store or Play Store. Instead, upgrades and downgrades must be handled through the customer portal, as described here: RevenueCat Web Billing - Upgrade/Downgrade
The documentation also states that users can upgrade or downgrade their plans through the customer portal link sent via email by RevenueCat.
In my implementation, I am handling this through APIs using the following flow:
- Search for the subscription using the Search subscriptions by store subscription identifier API.
- Retrieve the Subscription ID from the response.
- Use that ID to get the customer portal URL via the Get an authenticated Web Billing customer portal URL API.
- Redirect the user to that URL.
The issue I am facing is that there is no way to redirect the user back to my website after they successfully upgrade or downgrade their plan.
Could you please advise how I can redirect users back to my website after they complete the process in the customer portal?
