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

    Function resolveScheme

    • Resolve the x402 scheme for a plan by fetching plan metadata (cached). Used in callsites that don't have a token to extract scheme from (402 responses and token generation).

      Parameters

      • payments: Payments

        The Payments instance for API access

      • planId: string

        The plan identifier

      • OptionalexplicitScheme: X402SchemeType

        Optional explicit override; returned immediately if provided

      Returns Promise<X402SchemeType>

      The resolved scheme type