AI-generated Key Takeaways
-
CardRequirements specifies requirements for payment cards like allowed networks and whether prepaid cards are accepted.
-
It includes methods to check if prepaid cards are allowed, get allowed card networks, retrieve the billing address format, and determine if a billing address is required.
-
A Builder class is available to create CardRequirements objects.
Card requirements for the returned payment card. Examples include which card networks are
allowed (See WalletConstants.CardNetwork
)
and whether prepaid card is allowed.
Nested Class Summary
Inherited Constant Summary
Field Summary
| public static final Creator < CardRequirements > | CREATOR |
Public Method Summary
| boolean | allowPrepaidCards
()
Returns whether a prepaid card may be used as the backing card for this
transaction.
|
| ArrayList < Integer > | getAllowedCardNetworks
()
Returns the types of
WalletConstants.CardNetwork
that are allowed for this purchase, or null
if no restrictions were specified. |
| int | |
| boolean | |
| static CardRequirements.Builder | newBuilder
()
|
| void |
Inherited Method Summary
Fields
public static final Creator < CardRequirements > CREATOR
Public Methods
public boolean allowPrepaidCards ()
Returns whether a prepaid card may be used as the backing card for this transaction.
public ArrayList < Integer > getAllowedCardNetworks ()
Returns the types of WalletConstants.CardNetwork
that are allowed for this purchase, or null
if no restrictions were
specified.
public int getBillingAddressFormat ()
Returns the billing address format. See WalletConstants.BillingAddressFormat
for more info.
public boolean isBillingAddressRequired ()
Returns whether a billing address is required to be returned.

