#georges
1 messages · Page 1 of 1 (latest)
my config to create the customer portal url
const session = req.session;
const { url } = await stripe.billingPortal.sessions.create({
customer: session.user.customerId,
return_url: ${process.env.NEXT_PUBLIC_DASHBOARD_URL!}/apps,
});
Hello 👋
Customer portal has some limitations around what subscriptions can be updated.
https://stripe.com/docs/customer-management#customer-portal-limitations