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.

A Button Checkout component for ShipFast boilerplate

page.js

1import ButtonCheckout from "@/components/ButtonCheckout";

Updated on: Tuesday, September 5, 2023

Looking for UI-only components like buttons, inputs, etc? It's all available with daisyUI. See this guide for more info.