AccountDetails

  • AccountDetails contains data related to the user's payment card and can be represented by either a physical card or a payment token.

  • The physical card representation includes the card number, name on card, and optionally, the expiry month, year, and CVN.

  • A payment token is an alternative representation for a card that has been tokenized by the network.

Contains data related to the user's payment card.

JSON representation
{

  // Union field account_representation can be only one of the following:
  "card": {
    object (Card)
  },
  "paymentToken": {
    object (PaymentToken)
  }
  // End of list of possible types for union field account_representation.
}
Fields
Union field account_representation. REQUIRED: The card details. account_representation can be only one of the following:
card

object (Card)

Representation of a card in its physical format (i.e. the FPAN).

paymentToken

object (PaymentToken)

Representation of a card that has been tokenized by the network.

Card

Description of a payment card account (i.e., credit card, debit card, charge card).

JSON representation
{
  "accountNumber": string,
  "nameOnCard": string,
  "expiryMonth": string,
  "expiryYear": string,
  "cvn": string
}
Fields
accountNumber

string

REQUIRED: The account number itself (i.e., the FPAN).

nameOnCard

string

REQUIRED: The customer's name as it appears on the card.

expiryMonth

string

OPTIONAL: Expiration month, formatted MM.

expiryYear

string

OPTIONAL: Expiration year, formatted YY.

cvn

string

OPTIONAL: If Google collected the CVN from the user it is provided here and should be verified.