@nevermined-io/payments
    Preparing search index...

    Variable X402A2AMetadataConst

    X402A2AMetadata: {
        ERROR_KEY: "x402.payment.error";
        PAYLOAD_KEY: "x402.payment.payload";
        RECEIPTS_KEY: "x402.payment.receipts";
        REQUIRED_KEY: "x402.payment.required";
        STATUS_KEY: "x402.payment.status";
    } = ...

    Spec-defined A2A task / message metadata keys for the x402 protocol.

    As defined in the A2A x402 specification (Section 6: State Management). These keys are part of the specification and must not be changed. Note these are NOT the MCP _meta["x402/payment"] keys — A2A signals payment state through Task / Message metadata instead.

    Type Declaration

    • ReadonlyERROR_KEY: "x402.payment.error"

      Error code on failure.

    • ReadonlyPAYLOAD_KEY: "x402.payment.payload"

      PaymentPayload object (client → server).

    • ReadonlyRECEIPTS_KEY: "x402.payment.receipts"

      Array of SettleResponse receipts (server → client).

    • ReadonlyREQUIRED_KEY: "x402.payment.required"

      X402PaymentRequired object.

    • ReadonlySTATUS_KEY: "x402.payment.status"

      Current payment flow stage.