Expand description
Axum/Tower server middleware for automatic x402 payment gating.
Provides PaymentGateLayer which wraps an inner service to intercept
requests to payment-protected routes, enforce 402 Payment Required
responses, verify payments, and settle after successful responses.
Corresponds to Python SDK’s http/x402_http_server.py +
http/x402_http_server_base.py.
Structs§
- Payment
Gate Layer - Tower
Layerthat adds x402 payment gating to an inner service. - Payment
Gate Service - Tower
Servicethat enforces x402 payment requirements.
Type Aliases§
- Routes
Config - Route configuration map: pattern →
RouteConfig.