Skip to main content

Module pricing

Module pricing 

Source
Available on crate feature server only.
Expand description

Price tag sources for the x402 payment gate.

Abstracts over static and dynamic pricing strategies via the PriceTagSource trait. All sources produce v2::PriceTag values (V2-only server layer).

Structs§

DynamicPriceTags
Dynamic price tag source - computes price tags per-request via callback.
StaticPriceTags
Static price tag source - returns the same price tags for every request.

Traits§

PriceTagSource
Trait for types that can provide V2 price tags for a request.