Racket
11 HTTP edge and claim portal🔗ℹ
Server processes explicitly require commerce/server. The
edge binds webhook authentication, active order verification, journal
acceptance, and the one-time claim portal behind one small HTTP surface;
it is a thin adapter, and the journal’s idempotence decides every
acknowledgement.
Binds one Pancake channel to its keyring, merchant client, binding lookup,
and storage.
Recognizes one bound Pancake webhook endpoint.
Pure webhook handling: exact body bytes plus the signature header in, HTTP
status and JSON body out. The order is deliberate: signature first, then
binding resolution, then active verification, then journal acceptance.
Fulfills a one-time claim token. Unknown claims answer 404, reused claims
409, expired claims 410, and other refusals 422 — a fulfilled claim returns
the exact signed Permit envelope as JSON, once.
Renders the storage readiness snapshot for the load balancer.
Binds the endpoint to an HTTP port and returns a zero-argument shutdown
procedure. The servlet exposes exactly three routes —
/webhooks/pancake, /claims, and /readyz; anything else is
404.