Lemon Squeezy license key webhook test
License key events are easy to overlook until a paid user cannot activate a product after checkout.
Open the free generatorTrack license creation
Use license_key_created fixtures to verify that your app stores the key, customer email, and product mapping.
Separate delivery from activation
Checkout success should deliver the license; activation checks should remain a separate, idempotent product flow.
Cover refunds and revokes
Keep future-facing fixtures for disabled or refunded licenses so access can be removed cleanly.
FAQ
Can I test license webhooks without a real purchase?
Yes. Fixture tests cover handler logic before you validate the full purchase flow in Lemon Squeezy.
Where should license keys be logged?
Avoid logging full license keys. Store them securely and log only non-sensitive identifiers.
Use the free sample before wiring production checkout
Download a public sample pack with fake Lemon Squeezy fixtures, signature tests, contract checks, duplicate replay tests, and CI skeletons. The Pro Kit preview shows the full paid package structure without exposing the private archive.