useCustomerPortal hook creates Stripe customer portal sessions using your backend route.
By default it calls POST /api/priceos/v1/customer-portal.
Usage
Parameters
Optional fallback
customerId used when openCustomerPortal/createCustomerPortalSession are called without customerId.Returns
Creates a portal session and returns
{ url }.Creates a portal session, then redirects the browser to Stripe Customer Portal.
Body fields
Optional customer override. If omitted, the hook uses
options.customerId or your backend identifyCustomer.