T402 API Reference - v2.8.0
    Preparing search index...

    Function extractDiscoveryInfo

    • Extracts discovery information from payment payload and requirements. Combines resource URL, HTTP method, version, and discovery info into a single object.

      Parameters

      • paymentPayload: PaymentPayload

        The payment payload containing extensions and resource info

      • paymentRequirements: any

        The payment requirements to validate against

      • validate: boolean = true

        Whether to validate the discovery info against the schema (default: true)

      Returns DiscoveredResource

      Discovered resource info with URL, method, version and discovery data, or null if not found