public class CardConfiguration
extends Configuration
Configuration
class required by CardComponent
to change it's behavior. Pass it to the CardComponent.PROVIDER
.Modifier and Type | Class and Description |
---|---|
static class |
CardConfiguration.Builder
Builder to create a
CardConfiguration . |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<CardConfiguration> |
CREATOR |
static java.util.List<CardType> |
DEFAULT_SUPPORTED_CARDS_LIST |
Constructor and Description |
---|
CardConfiguration(java.util.Locale shopperLocale,
Environment environment,
android.util.DisplayMetrics displayMetrics,
java.lang.String publicKey,
boolean holderNameRequire,
java.lang.String shopperReference,
boolean showStorePaymentField,
CardType... supportCardTypes)
Deprecated.
Constructor with all parameters. Use the Builder to initialize this object.
|
Modifier and Type | Method and Description |
---|---|
android.util.DisplayMetrics |
getDisplayMetrics()
Deprecated.
There is no need for
DisplayMetrics in builder any more, it'll always return null |
java.lang.String |
getPublicKey()
Get public key.
|
java.lang.String |
getShopperReference() |
java.util.List<CardType> |
getSupportedCardTypes()
The list of
CardType that this payment supports. |
boolean |
isHolderNameRequire() |
boolean |
isShowStorePaymentFieldEnable() |
CardConfiguration.Builder |
newBuilder() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final java.util.List<CardType> DEFAULT_SUPPORTED_CARDS_LIST
public static final android.os.Parcelable.Creator<CardConfiguration> CREATOR
@Deprecated public CardConfiguration(java.util.Locale shopperLocale, Environment environment, android.util.DisplayMetrics displayMetrics, java.lang.String publicKey, boolean holderNameRequire, java.lang.String shopperReference, boolean showStorePaymentField, CardType... supportCardTypes)
shopperLocale
- The locale that should be used to display strings and layouts. Can differ from device default.environment
- The environment to be used to make network calls.displayMetrics
- The current DisplayMetrics
of the device to fetch images of matching size.publicKey
- The public key used for encryption of the card data. You can get it from the Customer Area.shopperReference
- The unique identifier of the shopper.holderNameRequire
- If the holder name of the card should be shown as a required field.showStorePaymentField
- If the component should show the option to store the card for later use.supportCardTypes
- The list of supported card brands to be shown to the user.public void writeToParcel(android.os.Parcel dest, int flags)
@Deprecated public android.util.DisplayMetrics getDisplayMetrics()
DisplayMetrics
in builder any more, it'll always return nullDisplayMetrics
public java.lang.String getPublicKey()
String
public java.util.List<CardType> getSupportedCardTypes()
CardType
that this payment supports. Used to predict the card type of theCardType
.public boolean isHolderNameRequire()
public java.lang.String getShopperReference()
public boolean isShowStorePaymentFieldEnable()
public CardConfiguration.Builder newBuilder()