@paypal/paypal-js
    Preparing search index...

    Type Alias LPMInstanceFor<T>

    LPMInstanceFor: {
        [C in Extract<T[number], LPMComponents> as LPMComponentToSessionMethod[C]]: (
            options: LPMOneTimePaymentSessionOptions,
        ) => LPMOneTimePaymentSession
    }

    Narrows LPMPaymentsInstance down to only the session-creation methods for the LPM components present in T. Requesting ["ideal-payments"] yields only createIdealOneTimePaymentSession, instead of all LPM methods. T is generic over readonly string[] (rather than Components[]) to avoid a circular import with ../index; non-LPM entries in T are ignored via Extract, and an empty extraction resolves to {} (a no-op intersection).

    Type Parameters

    • T extends readonly string[]