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

# PrimerPaymentMethodTokenData

```kotlin KOTLIN theme={"dark"}
data class PrimerPaymentMethodTokenData(
  val token: String,
  val analyticsId: String,
  val tokenType: TokenType,
  val paymentInstrumentType: String,
  val paymentInstrumentData: PaymentInstrumentData?,
  val vaultData: VaultData?,
  val threeDSecureAuthentication: AuthenticationDetails? = null,
  val isVaulted: Boolean
) {

  data class VaultData(
    val customerId: String,
  )

  data class AuthenticationDetails(
    val responseCode: ResponseCode,
    val reasonCode: String?,
    val reasonText: String?,
    val protocolVersion: String?,
    val challengeIssued: Boolean?,
  )
}
```

## Properties

**token** `String` *required*

**tokenType** `TokenType` *required*

**Cases**

**MULTI\_USE**

**SINGLE\_USE**

**analyticsId** `String` *required*

**paymentInstrumentType** `String` *required*

**paymentInstrumentData** `PaymentInstrumentData?`

**Properties**

**network** `String?`

The human readable representation of card network (e.g., Visa, Mastercard).

**cardholderName** `String?`

The name of the cardholder.

**first6Digits** `Int?`

The first 6 digits of the card number.

**firstDigits** `Int?`

The first 6 or 8 digits of the card number within PCI guidelines.

**last4Digits** `Int?`

The last 4 digits of the card number.

**accountNumberLast4Digits** `Int?`

The last 4 digits of the account number.

**expirationMonth** `Int?`

The expiration month of the card, in 2-digit format.

**expirationYear** `Int?`

The expiration year of the card, in 4-digit format.

**externalPayerInfo** `ExternalPayerInfo?`

External information about the payer associated with the transaction.

**Properties**

**email** `String`

The payer's email address.

**externalPayerId** `String?`

The payer's unique ID.

**firstName** `String?`

The payer's given name.

**lastName** `String?`

The payer's given surname.

**klarnaCustomerToken** `String?`

**sessionData** `SessionData?`

**paymentMethodType** `String?`

A unique string identifier for the payment method. (e.g. `PAYPAL`,
`GOOGLE_PAY`)

**binData** `BinData?`

Additional BIN data.

**Properties**

**network** `String?`

The card network (e.g., VISA, MASTERCARD, AMEX).

**bankName** `String?`

The name of the bank.

**vaultData** `VaultData?`

**threeDSecureAuthentication** `AuthenticationDetails?`


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