LogoStarterkitpro
Components

Purchase Button

A button component for initiating purchases through payment providers

Opens a Stripe or Lemonsqueezy Checkout session. Perfect for a one-time payment or a subscription.

By default the user must be logged in to checkout to prevent potential disputes like a fraudulent payment with a fake email.

In lib/app-config Set mode="payment" for one-time payments or mode="subscription" for recurring payments like a monthly membership.

Purchase Button

Usage

import { PurchaseButton } from "@/components/shared/purchase-button";

Before using the Purchase Button, make sure you have configured your payment provider

On this page