> ## 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](/sdk/android/v2.x.x/primer/methods/configure) function.

```kotlin KOTLIN theme={"dark"}
fun showPaymentMethod(
  context: Context,
  clientToken: String,
  paymentMethod: String,
  intent: PrimerSessionIntent,
)
```

## Parameters

<Expandable defaultOpen title="Parameters">
  <ResponseField name="context" type="Context" required>
    Android [Context](https://developer.android.com/reference/android/content/Context.html) of
    your `Activity` or `Fragment`.
  </ResponseField>

  {" "}

  <ResponseField name="clientToken" type="String" required>
    A client token as returned by the [create client session](/checkout/client-session#create-a-client-session) call.
  </ResponseField>

  {" "}

  <ResponseField name="paymentMethod" type="String" required>
    A paymentMethod to be shown.
  </ResponseField>

  <ResponseField name="intent" type="PrimerSessionIntent" required>
    Set the preferred session intent when showing paymentMethodType.

    <Expandable title="Properties">
      <ResponseField name="PrimerSessionIntent.CHECKOUT">
        {}
      </ResponseField>

      <ResponseField name="PrimerSessionIntent.VAULT">
        {}
      </ResponseField>
    </Expandable>
  </ResponseField>
</Expandable>

## 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)
  }
}
```
