Checkout Button
This component opens a checkout session for Stripe or Lemonsqueezy. It can be used to initiate a payment or subscription process for your application.
Just change the mode: 'payment'
for one-time payments or mode: 'subscription'
for recurring payments like a monthly membership.
This component is using the Stripe Checkout or Lemonsqueezy Checkout APIs based on the payment processor you choose in the configuration file.
Properties
The mode of payment for the checkout process
The ID of the price or plan for the checkout
Custom text to display on the button
Optional discount ID to apply to the checkout
Optional email to pre-fill in the checkout form
Custom styling for the component. You can customize the button’s appearance using Tailwind classes.
Optional animation effect for the button
Usage
Tips
When creating copy for your Checkout Button:
- Use action-oriented language (e.g., “Buy Now”, “Subscribe Today”, “Get Started”.)
- Include price or key benefit if applicable (e.g., “Start Free Trial”, “Join for $9.99/month”)
- Create urgency when appropriate (e.g., “Limited Time Offer”)
- Keep text concise and clear
If you need basic components like buttons, inputs, and more, they are available with Shadcn UI.