Parcelable representing more detailed information about a payment card.
Inherited Constant Summary
Field Summary
public static finalCreator<CardInfo> | CREATOR |
Public Method Summary
UserAddress |
getBillingAddress()
Gets the billing address associated with buyer's payment card.
|
int |
getCardClass()
Gets the card class which can be either credit, debit or prepaid.
|
String |
getCardDescription()
Gets a user-facing message to describe the card selected for funding this
payment transaction.
|
String |
getCardDetails()
Gets the last four digits of the selected card.
|
String |
getCardNetwork()
Gets the card network of the selected card.
|
void |
writeToParcel(Parcelout, int
flags)
|
Inherited Method Summary
Fields
Public Methods
public UserAddressgetBillingAddress()
Gets the billing address associated with buyer's payment card.
Note this billing address will only be populated when billing address is set as
required through
CardRequirements.Builder.setBillingAddressRequired(boolean)
.Also, the
billing address' appearance depends on the optional setting in
CardRequirements.Builder.setBillingAddressFormat(int)
Returns
- the billing address if requested, or
null
otherwise.
public intgetCardClass()
Gets the card class which can be either credit, debit or prepaid. SeeWalletConstants.CardClass
for the expected card class values. This classshould notbe displayed
to the buyer, but can be used when the details of a buyer's card are needed. An example
would be selecting a processor that gives better interchange rates or applying a
discount depending on the card class.
Returns
WalletConstants.CardClass
of the buyer's selected card, but can be unknown if it can not be determined.
publicStringgetCardDescription()
Gets a user-facing message to describe the card selected for funding this payment transaction. You are required to show this to inform the buyer of their funding source. Please refer to thedocumentationfor more information.
IMPORTANT:Do not attempt to parse the contents of this string as
the format, contents and length may change at any time. If you need finer grain
details, seegetCardNetwork()
,
getCardDetails()
,
andgetCardClass()
for stable card information.
Returns
- a user-facing message about the selected card used for payment.
publicStringgetCardDetails()
Gets the last four digits of the selected card. These detailsshould notbe displayed to the buyer, but can be used when the details of a buyer's card are needed. An example would be for customer support to help the buyer identify the card used for this transaction.
Returns
- the card details.
publicStringgetCardNetwork()
Gets the card network of the selected card. Card network has a finite set of values. This card networkshould notbe displayed to the buyer, but can be used when the details of a buyer's card are needed. An example would be for customer support to help the buyer identify the card used for this transaction.
You can rely on the card network not changing once it is defined for a given card in a transaction (i.e. purchasing with a single Visa card will always return VISA).
Examples of currently expected values for elements returned are:
- VISA
- MASTERCARD
- DISCOVER
- AMEX
Returns
- the card network of the buyer's selected card.