Creates an SDK instance, which is the first step in an SDK integration. This instance serves as the base layer for all SDK components.
Configuration options for creating the SDK instance
A promise that resolves to an SDK instance with methods based on the specified components
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"}); Copy
const sdkInstance = await window.paypal.createInstance({ clientToken: "your-client-token", components: ["paypal-payments"], locale: "en-US", pageType: "checkout"});
Creates an SDK instance, which is the first step in an SDK integration. This instance serves as the base layer for all SDK components.