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

# showUniversalCheckout

Show Primer's Drop-In Checkout.

The simplest way to integrate with Primer. With just a few lines of code, you can display a fully in-context checkout UI with all your payment methods.

Note that there are more options which you can set by passing your SDK settings in the [configure](https://primer.io/docs/sdk/android/v2.x.x/primer/methods/configure.md) function.

```kotlin KOTLIN theme={"dark"}
fun showUniversalCheckout(context: Context, clientToken: String)
```

## Parameters

**Parameters**

**context** `Context` *required*

Android [Context](https://developer.android.com/reference/android/content/Context.html) of your `Activity` or `Fragment`.

**clientToken** `String` *required*

A client token as returned by the [create client session](https://primer.io/docs/checkout/client-session.md#create-a-client-session) call.

## Example

Availing Universal Checkout is as easy as implementing one line of code:

```kotlin KOTLIN theme={"dark"}

class CheckoutActivity : AppCompatActivity() {

	// ...

	private fun showUniversalCheckout(clientToken: String) {
        // 👇 Add this
        Primer.instance.showUniversalCheckout(context, clientToken)
    }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.