ComponentsButton Checkout
Opens a Stripe Checkout session. Perfect for a one-time payment or a subscription.
Set mode="payment"
for one-time payments or mode="subscription"
for recurring payments like a monthly membership.
By default the user must be logged in to checkout to prevent potential disputes like a fraudulent payment with a fake email. You can change that in the /api/stripe/create-checkout/route.js
API route
This component is used to create Stripe subscriptions and one-time payments.

page.js
Looking for UI-only components like buttons, inputs, etc? It's all available as Tailwind utilities. See this guide for more info.