Skip to main content

Module types

Module types 

Source
Expand description

HTTP-specific types for the x402 payment protocol server middleware.

Provides route configuration, payment options, request context, and processing result types used by [super::server::PaymentGate].

Corresponds to Python SDK’s http/types.py.

Structs§

PaymentOption
A payment option accepted by a protected route.
PaywallConfig
Paywall UI configuration for browser-based 402 responses.
RouteConfig
Configuration for a payment-protected route.
RouteValidationError
A validation error for a route configuration.
SettleResult
Result of settlement processing after a successful response.

Enums§

ProcessResult
Result of processing an HTTP request through the payment gate.