A button with a dropdown menu to manage user account:
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 homepage
It's automatically hidden if the user is not logged in. This component is used to handle Stripe Subscriptions.
1 import ButtonAccount from "@/components/button-acount";
Tips
  • Try to cover an potential objections your visitors might have. For instance, if you're selling a course, you might want to add a question about the refund policy.
Updated on: Tuesday, June 21, 2024
Looking for UI-only components like buttons, inputs, etc? It's all available with daisyUI. See this guide for more info.