Fixture
A CNY `order_created` payload shaped for local entitlement and payment-state tests.
Free Sample
This sample gives you a safe Lemon Squeezy `order_created` fixture, a Next.js raw-body handler, Vitest signature, contract, and duplicate replay tests, a Markdown review report, and a GitHub Actions workflow. It uses only fake data and a local test secret.
A CNY `order_created` payload shaped for local entitlement and payment-state tests.
A Next.js App Router example that verifies the exact raw body before parsing JSON.
Vitest checks for byte-for-byte signatures, stable payload contracts, and process-once duplicate replay behavior.
A PR-ready Markdown summary covering the signature gate, trusted fields, and idempotency key.
A GitHub Actions workflow skeleton for running webhook tests before deploys.
The same free sample is attached to GitHub Release v0.1.0 with a public checksum and release notes.
Upgrade Path
The sample proves the structure with one fake Lemon Squeezy order flow. The Pro Kit expands the same pattern into lifecycle fixtures, provider starters, route handlers, review artifacts, and CI checks that are ready to copy into a billing integration branch.
The sample uses fake provider IDs, fake customer fields, and a local-only test signing secret.
The ZIP is attached to GitHub Release v0.1.0 so developers can inspect the sample before any purchase path exists.
sample-pack/
README.md
fixtures/lemon/order-created.sample.json
src/handlers/next-app-router.sample.ts
tests/lemon-signature.sample.test.ts
tests/lemon-contract.sample.test.ts
tests/lemon-idempotency-replay.sample.test.ts
docs/webhook-review-report.sample.md
.github/workflows/webhook-checks.sample.yml