- [JSON representation](https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/AccountDetails#SCHEMA_REPRESENTATION)
- [PaymentToken](https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/AccountDetails#PaymentToken)
  - [JSON representation](https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/AccountDetails#PaymentToken.SCHEMA_REPRESENTATION)

Contains data related to the user's payment card.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "card": { object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Card`) }, "paymentToken": { object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/AccountDetails#PaymentToken`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| **REQUIRED**: The card details. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `card` | ``object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Card`)`` Representation of a card in its physical format (i.e. the FPAN). |
| `paymentToken` | ``object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/AccountDetails#PaymentToken`)`` Representation of a card that has been tokenized by the network. |
| End of mutually exclusive fields. ||

## PaymentToken

The representation of a card after it has been tokenized by the network.

| JSON representation |
|---|
| ``` { "nameOnCard": string, "paymentTokenAccountNumber": string, "expiryMonth": string, "expiryYear": string, "cryptogram": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "tokenTypeDeviceToken": { object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`) }, "tokenTypeMerchantToken": { object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`) }, "tokenTypeUnsupported": { object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`) }, "tokenTypeNotApplicable": { object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `nameOnCard` | `string` **REQUIRED**: The customer's name as it appears on the card. |
| `paymentTokenAccountNumber` | `string` **REQUIRED**: The account number for the payment token. |
| `expiryMonth` | `string` **OPTIONAL** : Expiration month, formatted `MM`. |
| `expiryYear` | `string` **OPTIONAL** : Expiration year, formatted `YY`. |
| `cryptogram` | `string` **OPTIONAL**: The single-use key generated by the token provider for the transaction. |
| **REQUIRED**: The type of token. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `tokenTypeDeviceToken` | ``object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`)`` The token is bound to a device. It is represented by a DPAN and was generated by the user going through a SCA (Strong Customer Authentication) / Step Up flow. |
| `tokenTypeMerchantToken` | ``object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`)`` The token is bound to a merchant. It could be used while the user is offline and might be accompanied by additional, transaction time authentication details, such as 3DS2. |
| `tokenTypeUnsupported` | ``object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`)`` Unsupported token type. |
| `tokenTypeNotApplicable` | ``object (`https://developers.google.com/pay/card-fop-v1/payment-integrator-card-fop-api/Empty`)`` Payment token type is not applicable. Not passed in the request. |
| End of mutually exclusive fields. ||