Hi, can you elaborate on the code you provided and how to use it?
I also need my users to be able to access this Stripe portal because I legally have to provide them an invoice which is not sent when a subscription is created via the API:
The workaround I found was to use the Custom Hamburger Menu Links Theme Component and add a link to the Stripe portal. It works, but it’s not great for the users which have to connect to it via an email link.