ack-x402
v0.0.1
Published
HTTP 402 middleware for Agent Commerce Kit — handle payment-required challenges with ACK identity binding
Downloads
178
Readme
ack-x402
HTTP 402 middleware for the Agent Commerce Kit — handle payment-required challenges with ACK identity binding.
Status: Coming soon. This package is in the research and planning phase.
What it does
When a service returns HTTP 402 Payment Required, an AI agent needs to parse the payment request, select a payment option, execute payment, and present the receipt — all with cryptographic identity binding. This middleware handles that flow for server frameworks.
- Express, Hono, and Fastify adapters
- Automatic payment request parsing from 402 responses
- ACK identity binding (agent DID + grant) on payment flows
- Receipt presentation and verification
- Integration with the x402 protocol
Relationship to ACK
This is a companion package to agentcommercekit. ACK-Pay v2 profiles x402 offer-receipt artifacts and binds them to ACK identities. This package implements the HTTP middleware that makes that integration drop-in for server applications.
License
MIT
