public static final class CardConfiguration.Builder
extends <any>
CardConfiguration
.Constructor and Description |
---|
Builder(CardConfiguration cardConfiguration)
Constructor of Card Configuration Builder with instance of CardConfiguration.
|
Builder(android.content.Context context)
Constructor of Card Configuration Builder with default values from Context.
|
Builder(android.content.Context context,
java.lang.String publicKey)
Deprecated.
Constructor deprecated since publicKey is no longer always required in favor of clientKey.
|
Builder(java.util.Locale shopperLocale,
Environment environment)
Builder with parameters for a
CardConfiguration . |
Builder(java.util.Locale shopperLocale,
Environment environment,
java.lang.String publicKey)
Deprecated.
Constructor deprecated since publicKey is no longer always required in favor of clientKey.
|
Modifier and Type | Method and Description |
---|---|
CardConfiguration |
build()
Build
CardConfiguration object from CardConfiguration.Builder inputs. |
CardConfiguration.Builder |
setClientKey(java.lang.String builderClientKey) |
CardConfiguration.Builder |
setEnvironment(Environment builderEnvironment) |
CardConfiguration.Builder |
setHideCvc(boolean hideCvc)
Set if the CVC field should be hidden from the Component and not requested to the shopper on a regular payment.
|
CardConfiguration.Builder |
setHideCvcStoredCard(boolean hideCvcStoredCard)
Set if the CVC field should be hidden from the Component and not requested to the shopper on a stored payment flow.
|
CardConfiguration.Builder |
setHolderNameRequire(boolean holderNameRequire)
Set if the holder name is required and should be shown as an input field.
|
CardConfiguration.Builder |
setPublicKey(java.lang.String publicKey) |
CardConfiguration.Builder |
setShopperLocale(java.util.Locale builderShopperLocale) |
CardConfiguration.Builder |
setShopperReference(java.lang.String shopperReference)
Set the unique reference for the shopper doing this transaction.
|
CardConfiguration.Builder |
setShowStorePaymentField(boolean showStorePaymentField)
Set if the option to store the card for future payments should be shown as an input field.
|
CardConfiguration.Builder |
setSupportedCardTypes(CardType... supportCardTypes)
Set the supported card types for this payment.
|
public Builder(CardConfiguration cardConfiguration)
public Builder(android.content.Context context)
context
- A contextpublic Builder(java.util.Locale shopperLocale, Environment environment)
CardConfiguration
.shopperLocale
- The Locale of the shopper.environment
- The Environment
to be used for network calls to Adyen.@Deprecated public Builder(android.content.Context context, java.lang.String publicKey)
context
- A contextpublicKey
- The public key to be used for encryption. You can get it from the Customer Area.@Deprecated public Builder(java.util.Locale shopperLocale, Environment environment, java.lang.String publicKey)
CardConfiguration
.shopperLocale
- The Locale of the shopper.environment
- The Environment
to be used for network calls to Adyen.publicKey
- The public key used for encryption of the card data. You can get it from the Customer Area.public CardConfiguration.Builder setShopperLocale(java.util.Locale builderShopperLocale)
public CardConfiguration.Builder setEnvironment(Environment builderEnvironment)
public CardConfiguration.Builder setClientKey(java.lang.String builderClientKey)
public CardConfiguration.Builder setPublicKey(java.lang.String publicKey)
publicKey
- The public key to be used for encryption. You can get it from the Customer Area.public CardConfiguration.Builder setSupportedCardTypes(CardType... supportCardTypes)
supportCardTypes
- array of CardType
CardConfiguration.Builder
public CardConfiguration.Builder setHolderNameRequire(boolean holderNameRequire)
holderNameRequire
- Boolean
CardConfiguration.Builder
public CardConfiguration.Builder setShowStorePaymentField(boolean showStorePaymentField)
showStorePaymentField
- Boolean
CardConfiguration.Builder
public CardConfiguration.Builder setShopperReference(java.lang.String shopperReference)
com.adyen.checkout.base.model.payments.request.PaymentComponentData
for convenience.shopperReference
- The unique shopper referenceCardConfiguration.Builder
public CardConfiguration.Builder setHideCvc(boolean hideCvc)
hideCvc
- If CVC should be hidden or not.CardConfiguration.Builder
public CardConfiguration.Builder setHideCvcStoredCard(boolean hideCvcStoredCard)
hideCvcStoredCard
- If CVC should be hidden or not for stored payments.CardConfiguration.Builder
public CardConfiguration build()
CardConfiguration
object from CardConfiguration.Builder
inputs.CardConfiguration