• 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

    • Optional explicitScheme: X402SchemeType

      Optional explicit override; returned immediately if provided

    Returns Promise<X402SchemeType>

    The resolved scheme type