Learn how to set up Lemonsqueezy with ShipThing.
Secret key
and the Publishable key
. You will need the Secret key
for the integration to work.
.env.local
as well as your production environment:
lemonsqueezy
object:
/api/lemonsqueezy/checkout
endpoint.
apps/web/api/lemonsqueezy/checkout/route.ts
.
subscription_created
subscription_updated
subscription_cancelled
order_created
POST /webhooks/lemonsqueezy
route in the apps/api
app. This route constructs the event and then switches on the event type to determine how to process the event.
Webhook
handler for you. You can modify it as needed.