# Initialize the SDK
source: https://developer.mastercard.com/mastercard-checkout-solutions/tutorial/integrate_sdk/step3/index.md

## Step 3. Initialize the SDK {#step-3-initialize-the-sdk}

* When the consumer clicks View Basket/Shopping Cart to initiate checkout, call the [init()](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/sdk-reference/init/index.md) method to initialize the SDK.

* This script will load and create a global object named `SRCSDK_MASTERCARD` on the window.

* Consecutively, call **[isRecognized()](https://developer.mastercard.com/mastercard-checkout-solutions/documentation/sdk-reference/is-recognized/index.md)** before any other actions to ensure a returning user has been recognized correctly.

Note: **Applicable for Click to Pay**

Ideally, you should initialize the SDK at the page load rather than on the Click to Pay trigger --- this will ensure the experience is more responsive.
