AccountDetails
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["\u003cp\u003eAccountDetails contains data related to the user's payment card and can be represented by either a physical card or a payment token.\u003c/p\u003e\n"],["\u003cp\u003eThe physical card representation includes the card number, name on card, and optionally, the expiry month, year, and CVN.\u003c/p\u003e\n"],["\u003cp\u003eA payment token is an alternative representation for a card that has been tokenized by the network.\u003c/p\u003e\n"]]],["The provided data details payment card information, represented in JSON. It uses a union field, `account_representation`, which can be either a physical card (`card`) or a tokenized card (`paymentToken`). A card contains an `accountNumber` (FPAN), `nameOnCard`, optional `expiryMonth`, `expiryYear`, and `cvn`. The `accountNumber` and `nameOnCard` are required fields, while expiry information and cvn are optional, if collected.\n"],null,["- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Card](#Card)\n - [JSON representation](#Card.SCHEMA_REPRESENTATION)\n\nContains data related to the user's payment card.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `account_representation` can be only one of the following: \"card\": { object (/pay/india-cards-v1/payment-integrator-india-cards-api/AccountDetails#Card) }, \"paymentToken\": { object (/pay/india-cards-v1/payment-integrator-india-cards-api/PaymentToken) } // End of list of possible types for union field `account_representation`. } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `account_representation`. **REQUIRED** : The card details. `account_representation` can be only one of the following: ||\n| `card` | `object (`[Card](/pay/india-cards-v1/payment-integrator-india-cards-api/AccountDetails#Card)`)` Representation of a card in its physical format (i.e. the FPAN). |\n| `paymentToken` | `object (`[PaymentToken](/pay/india-cards-v1/payment-integrator-india-cards-api/PaymentToken)`)` Representation of a card that has been tokenized by the network. |\n\nCard Description of a payment card account (i.e., credit card, debit card, charge card).\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accountNumber\": string, \"nameOnCard\": string, \"expiryMonth\": string, \"expiryYear\": string, \"cvn\": string } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------|\n| `accountNumber` | `string` **REQUIRED**: The account number itself (i.e., the FPAN). |\n| `nameOnCard` | `string` **REQUIRED**: The customer's name as it appears on the card. |\n| `expiryMonth` | `string` **OPTIONAL** : Expiration month, formatted `MM`. |\n| `expiryYear` | `string` **OPTIONAL** : Expiration year, formatted `YY`. |\n| `cvn` | `string` **OPTIONAL**: If Google collected the CVN from the user it is provided here and should be verified. |"]]