Components
ButtonAccount
A button with a dropdown menu to manage user account:Billing: Open a Stripe Customer Portal to manage their billing (cancel subscription, update payment method, etc.). You have to manually activate the Customer Portal in your Stripe Dashboard. This is only available if the customer has a customerId (they made a purchase previously)Logout: sign out the user and go back to the homepageIt's automatically hidden if the user is not logged in. This component is used to handle Stripe Subscriptions.

page.js
1import ButtonAccount from "@/components/ButtonAccount";Updated on: Monday, October 30, 2023
this guide