@me2em/x402
    Preparing search index...

    Function readPaymentHeader

    • Reads the buyer's PAYMENT-SIGNATURE header (ТЗ §3.4). null — the header is absent (a plain unauthenticated request). When expectedResourceUrl is given and the payload's resource.url does not match — X402Error RESOURCE_MISMATCH (a payload for a different resource must never be accepted).

      Parameters

      • headers: Headers
      • OptionalexpectedResourceUrl: string

      Returns X402PaymentPayload | null