Subscriptions
Customer portal
Let customers manage their billing relationship.
Create a short-lived customer portal session from your server with a customer ID and a registered return URL. Redirect the customer to the returned portal URL.
The portal can expose invoices, payment method updates, plan changes, pause/resume, and cancellation according to merchant policy. Treat changes made in the portal as asynchronous and reconcile them from signed events. The session URL is short-lived; create a fresh one when it expires and do not persist it as a permanent customer credential.