# Start SDK

In your `Application` class `onCreate()` method, initialize the SDK:

{% code overflow="wrap" %}

```kotlin
override fun onCreate( {
super.onCreate()PayContactlessEmbed.getInstance().start(this, orgID, googleCloudID)
}
```

{% endcode %}

* Must be called before performing any transactions
* Ensures the SDK is ready for `doSale`, and other major payment flows

**Required Parameters:**

* **Context:** Application context&#x20;
* **Organization Id:** Predefined organization identifier&#x20;
* **Google Clould Project Number:** Project Number of your project on Google Cloud

{% hint style="warning" %}
PayContactless Embed SDK uses Play Integrity API for Automatic integrity protection. You need to enable Integrity API on your project and share required credentials to the PayContactless team. Please check Play Integrity Configuration section.
{% endhint %}

{% content-ref url="../../production-preparation/play-integrity-configuration" %}
[play-integrity-configuration](https://developer.prophius.com/developer-console/merchant-embed-sdk/production-preparation/play-integrity-configuration)
{% endcontent-ref %}

Remember to pass the these parameters as arguments when invoking the `start` method.

By adhering to these steps, you'll ensure the proper and utilization of the Merchant PayContactless  SDK library functions.

The SDK needs the activity result to parse the Payment activity reponse. The `onAcitivtyResult` method of the SDK must be called in MainActivity  `onActivityResult` method.

```kotlin
PayContactlessEmbed.getInstance().onActivityResult(requestCode,resultCode,data)
```

A sample usage is highlighted below;

```kotlin
  override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
        PayContactlessEmbed.getInstance().onActivityResult(requestCode,resultCode,data)
    }
```
