Hooks
useManageSubscription()
The useManageSubscription() hook returns a function that redirects the current user to their Stripe customer portal, where they can manage their subscription, update payment methods, or cancel their plan. It communicates with the /api/stripe/portal endpoint to generate the portal session URL.
Unlock full documentation
This part of the documentation are for members only. Please upgrade your plan to unlock this section.