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

    Interface PayPalV6Namespace

    interface PayPalV6Namespace {
        createInstance: <T extends readonly Components[]>(
            createInstanceOptions: CreateInstanceOptions<T>,
        ) => Promise<SdkInstance<T>>;
        version: `${number}.${number}.${number}`;
    }
    Index

    Properties

    createInstance: <T extends readonly Components[]>(
        createInstanceOptions: CreateInstanceOptions<T>,
    ) => Promise<SdkInstance<T>>

    Creates an SDK instance, which is the first step in an SDK integration. This instance serves as the base layer for all SDK components.

    Type Declaration

    This is an asynchronous method that initializes the PayPal SDK with the provided client token and components.

    const sdkInstance = await window.paypal.createInstance({
    clientToken: "your-client-token",
    components: ["paypal-payments"],
    locale: "en-US",
    pageType: "checkout"
    });
    version: `${number}.${number}.${number}`