> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Initialize the SDK

This article explains how to configure and initialize the Payment Links SDK for Android.

## Configure the SDK

The Android Payment Links SDK exposes a `ConfigModel`. Create an instance with the following arguments:

```kotlin Kotlin theme={"system"}
let config = ConfigModel(
    checkoutPublicKey: "{YOUR_CHECKOUT_PUBLIC_KEY}",
    environment: "sandbox"
)
```

| Argument | Type | Description |
| - | - | - |
| `checkoutPublicKey` | `String` | The Checkout Public Key. You can find it by going to the **Publisher Dashboard → Settings → Integration**. |
| `environment` | `String` | The checkout environment. One of: - `sandbox`: For testing. - `production`: For live operations. |

## Initialize The SDK

To initialize the SDK, call the method below using the `ConfigModel`. We recommend doing this on application load:

```kotlin Kotlin theme={"system"}
BridgeAPI.init(
    context: Context, 
    configModel: ConfigModel, 
    callback: ICheckoutPurchase)
```

| Argument | Type | Description |
| - | - | - |
| `context` | `Context` | Application or Current context. |
| `configModel` | `ConfigModel` | Configuration model for initializing the SDK. |
| `callback` | `ICheckoutPurchase` | Interface callback. |
