---
page_source: https://juspay.io/in/docs/ec-headless/flutter/base-sdk-integration/getting-sdk
page_title: 1. Getting SDK
---


## 1. Getting the SDK



In order to use Express Checkout, the very first step is to install EC SDK into your application and add proper configurations. This has three steps to it:

1. [Installing Flutter Plugin](https://docs.juspay.in/ec-headless/flutter/base-sdk-integration/getting-sdk#1.1.-Installing-Flutter-Plugin)
2. [Android Setup](https://docs.juspay.in/ec-headless/flutter/base-sdk-integration/getting-sdk#1.2.-Android-Setup)
3. [iOS Setup](https://docs.juspay.in/ec-headless/flutter/base-sdk-integration/getting-sdk#1.3.-iOS-Setup)

Following sections describe how to complete above steps


### 1.1. Installing Flutter Plugin




### Step 1.1.a. Add Plugin Dependency


Add flutter plugin dependency in `pubspec.yaml`, as described below

> **Note**
> dependencies:
> 
>  hypersdkflutter: ^4.0.0






### 1.2. Android Setup




### Step 1.2 Add the clientId ext property


Add the clientId ext property in root(top) `build.gradle`



#### Code Snippets: -

#### Flutter Code Snippet:

```flutter
ext {
        ....
        clientId = "<clientId shared by Juspay team>"
        hyperSDKVersion = "2.1.13"
        ....
    }
```



### 1.3. iOS Setup



To install Assets Plugin follow the below steps


### Step 1.3.a Add Post Install Script to Podfile


This Ruby Script will download all the latest assets required for proper functioning of your EC SDK integration



#### Code Snippets: -

#### Flutter Code Snippet:

```flutter
post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
  # // Add iOS post-install script
  # // block:start:ios-post-install
  
  fuse_path = "./Pods/HyperSDK/Fuse.rb"
  clean_assets = true
  if File.exist?(fuse_path)
    if system("ruby", fuse_path.to_s, clean_assets.to_s)
    end
  end
  # // block:end:ios-post-install
end

```



### Step 1.3.b. Add MerchantConfig.txt


The MerchantConfig.txt contains a clientId which helps the Assets plugin to download assets specific to your application

Create a .txt file named `MerchantConfig.txt` inside the app directory of your project. Add `clientId = your_client_id`to this file. Please note that the file has to added in the top directory of your app



#### Code Snippets: -

#### Flutter Code Snippet:

```flutter
clientId = <your_client_id>
```
