Skip to main content

WirePaymentPayload

Type Alias WirePaymentPayload 

Source
pub type WirePaymentPayload = PaymentPayload<PaymentRequirements, Value>;
Expand description

Wire payment payload with typed requirements and opaque scheme body.

Aliased Type§

pub struct WirePaymentPayload {
    pub accepted: PaymentRequirements,
    pub payload: Value,
    pub resource: Option<ResourceInfo>,
    pub x402_version: Version<2>,
    pub extensions: Extensions,
}

Fields§

§accepted: PaymentRequirements

Terms the buyer accepted.

§payload: Value

Scheme-specific signed payload.

§resource: Option<ResourceInfo>

Optional resource metadata copied from the 402 response.

§x402_version: Version<2>

Protocol version marker (always 2).

§extensions: Extensions

Optional extension payload block.