Skip to main content

Module paygate

Module paygate 

Source
Available on crate feature server only.
Expand description

Core payment gate logic for enforcing x402 payments (V2-only).

The Paygate struct handles the full payment lifecycle: extracting headers, verifying with the facilitator, settling on-chain, and returning 402 responses when payment is required.

Structsยง

Paygate
V2-only payment gate for enforcing x402 payments.
PaygateBuilder
Builder for constructing a Paygate with validated configuration.
ResourceInfoBuilder
Builder for resource information that can be used with both V1 and V2 protocols.