Payments
Directories are a wonderful way to earn money, so it comes with afull payment process built-in.
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
Create your store following this guide.
Configure your webhook (allowing LM and your app to be in sync for payments):
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.
Last updated