Skip to content

feat: /crawl day-pass endpoint and /hooks/coinpay webhook - #1

Merged
ralyodio merged 1 commit into
mainfrom
feat/paid-tier-webhook
Nov 30, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/paid-tier-webhook

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor
  • /crawl: the x402 gateway's day-pass sales page and settle endpoint (paid tier, only when COINPAY_X402_KEY and CRAWL_PAY_TO are set).
  • /hooks/coinpay: acknowledges CoinPay business webhook events (business made by coinpay-onboard points here).

Tested locally with the real scoped key and RATE_LIMIT_PER_MIN=3: 200 200 200 402 402, x402 offer for 1 USDC on Base, a second caller still 200, /crawl 402, /hooks/coinpay 204. pnpm test 17 pass.

🤖 Generated with Claude Code

With COINPAY_X402_KEY + CRAWL_PAY_TO set, callers over the free limit get a
402 offering a $1 day pass; /crawl now serves the gateway's sales page and
settle endpoint instead of a 404. The CoinPay business webhook is acknowledged
at /hooks/coinpay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 34a105e into main Nov 30, 2026
1 check passed
@ralyodio
ralyodio deleted the feat/paid-tier-webhook branch November 30, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant