> ## 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.

# showPaymentMethod

Show single paymentMethod in either Primer's Checkout or Vault session.

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 showPaymentMethod(
  context: Context,
  clientToken: String,
  paymentMethod: String,
  intent: PrimerSessionIntent,
)
```

## Parameters

**Parameters**

**context** `Context` *required*

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

&#x20;

**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.

&#x20;

**paymentMethod** `String` *required*

A paymentMethod to be shown.

**intent** `PrimerSessionIntent` *required*

Set the preferred session intent when showing paymentMethodType.

**Properties**

**PrimerSessionIntent.CHECKOUT**

**PrimerSessionIntent.VAULT**

## Example

Show a specific payment method using the following code:

```kotlin KOTLIN theme={"dark"}
class CheckoutActivity : AppCompatActivity() {
  // ...
  private fun showPaymentMethod(
    clientToken: String,
    paymentMethodType: String,
    sessionIntent: PrimerSessionIntent
  ) {
    // 👇 Add this
    Primer.instance.showPaymentMethod(context, clientToken, paymentMethodType, sessionIntent)
  }
}
```


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