DirectoryFast
  • 🚀Get Started
  • 🔤Tutorials
    • Bring me to life!
    • How it's structured?
    • Make it yours
    • Bonus
  • 🛠️Features
    • AI
      • AI URL Scanner & Scan Jobs
    • Analytics
    • Authentication
    • API
      • Protected Endpoints
    • Blog
    • Database
    • Emails
    • Error Pages
    • Icons
    • Payments
    • Private Pages
    • SEO
  • 📦General Components
    • Shadcn/ui Components
    • Navbar
    • Footer
    • SignIn Modal
    • Hero Section
    • Social Proof
    • Collections Social Proof
    • Featured Section
    • Latest Collections Section
    • Latest Products Section
    • Recommended Section
  • 📦Directory Components
    • Product Card
    • Collection Card
    • Product Note
    • Search Bar
    • Tags
    • Product Options Toggle
    • Combobox
    • Multi-Combobox
    • Submit Product
    • Feature Product
    • Manage Note
    • Manage Collection
    • Dashboard Tables
  • ⛓️Links
    • GitHub Repository
    • Support
Powered by GitBook
On this page
  • LemonSqueezy
  • Setup
  • Payment logic
  1. Features

Payments

Directories are a wonderful way to earn money, so it comes with afull payment process built-in.

PreviousIconsNextPrivate Pages

Last updated 11 months ago

LemonSqueezy

DirectoryFast chose LemonSqueezy over a classic Stripe integration for 1 good reason for us, indiehackers:

As your merchant of record, we handle the tax compliance burden so you can focus on more revenue and less headache.

Setup

  1. Create your store following this .

  2. Configure your webhook (allowing LM and your app to be in sync for payments):

    1. Log to your > Settings > Webhooks > + Icon

    2. Fill Callback URL (https://your.app/billing/webhook)

    3. Fill Signing Secret (you can use this )

    4. Select all the wanted events (eg: order_*** for one-time payments)

    5. Save Webhook

  3. Add the Signing Secret value to LEMONSQUEEZY_WEBHOOK_SECRET in your .env file.

Payment logic

For now, only one-time payments are built-in, subscriptions are planned.

If you want to add your own logic or implement new ways to get paid, you'll find everything in the /app/billing/webhook/route.ts file.

🛠️
guide
Dashboard
generator