Package com.adyen.checkout.bcmc
Class BcmcConfiguration.Builder
-
- All Implemented Interfaces:
-
com.adyen.checkout.action.core.internal.ActionHandlingConfigurationBuilder,com.adyen.checkout.components.core.internal.ButtonConfigurationBuilder
@Deprecated(message = "Configuration builders are deprecated, use CheckoutConfiguration instead.") public final class BcmcConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<BcmcConfiguration, BcmcConfiguration.Builder> implements ButtonConfigurationBuilder
Builder to create a BcmcConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisHolderNameRequiredprivate BooleanshowStorePaymentFieldprivate StringshopperReferenceprivate BooleanisSubmitButtonVisible
-
Constructor Summary
Constructors Constructor Description BcmcConfiguration.Builder(Environment environment, String clientKey)Initialize a configuration builder with the required fields. BcmcConfiguration.Builder(Context context, Environment environment, String clientKey)Alternative constructor that uses the context to fetch the user locale and use it as a shopper locale. BcmcConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)Builder with required parameters for a BcmcConfiguration.
-
Method Summary
Modifier and Type Method Description final BooleanisHolderNameRequired()final UnitsetHolderNameRequired(Boolean isHolderNameRequired)final BooleangetShowStorePaymentField()final UnitsetShowStorePaymentField(Boolean showStorePaymentField)final StringgetShopperReference()final UnitsetShopperReference(String shopperReference)final BooleanisSubmitButtonVisible()final UnitsetSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)final BcmcConfiguration.BuildersetHolderNameRequired(Boolean isHolderNameRequired)Set if the holder name is required and should be shown as an input field. final BcmcConfiguration.BuildersetShowStorePaymentField(Boolean showStorePaymentField)Set if the option to store the card for future payments should be shown as an input field. final BcmcConfiguration.BuildersetShopperReference(String shopperReference)Set the unique reference for the shopper doing this transaction. BcmcConfiguration.BuildersetSubmitButtonVisible(Boolean isSubmitButtonVisible)Sets if submit button will be visible or not. -
Methods inherited from class com.adyen.checkout.action.core.internal.ActionHandlingPaymentMethodConfigurationBuilder
add3ds2ActionConfiguration, addAwaitActionConfiguration, addQRCodeActionConfiguration, addRedirectActionConfiguration, addTwintActionConfiguration, addVoucherActionConfiguration, addWeChatPayActionConfiguration -
Methods inherited from class com.adyen.checkout.components.core.internal.BaseConfigurationBuilder
build, setAmount, setAnalyticsConfiguration, setShopperLocale -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BcmcConfiguration.Builder
BcmcConfiguration.Builder(Environment environment, String clientKey)
Initialize a configuration builder with the required fields.- Parameters:
environment- The Environment to be used for internal network calls from the SDK to Adyen.clientKey- Your Client Key used for internal network calls from the SDK to Adyen.
-
BcmcConfiguration.Builder
BcmcConfiguration.Builder(Context context, Environment environment, String clientKey)
Alternative constructor that uses the context to fetch the user locale and use it as a shopper locale.- Parameters:
context- A Contextenvironment- The Environment to be used for internal network calls from the SDK to Adyen.clientKey- Your Client Key used for internal network calls from the SDK to Adyen.
-
BcmcConfiguration.Builder
BcmcConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)
Builder with required parameters for a BcmcConfiguration.- Parameters:
shopperLocale- The Locale of the shopper.environment- The Environment to be used for internal network calls from the SDK to Adyen.clientKey- Your Client Key used for internal network calls from the SDK to Adyen.
-
-
Method Detail
-
isHolderNameRequired
final Boolean isHolderNameRequired()
-
setHolderNameRequired
final Unit setHolderNameRequired(Boolean isHolderNameRequired)
-
getShowStorePaymentField
final Boolean getShowStorePaymentField()
-
setShowStorePaymentField
final Unit setShowStorePaymentField(Boolean showStorePaymentField)
-
getShopperReference
final String getShopperReference()
-
setShopperReference
final Unit setShopperReference(String shopperReference)
-
isSubmitButtonVisible
final Boolean isSubmitButtonVisible()
-
setSubmitButtonVisible
final Unit setSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)
-
setHolderNameRequired
final BcmcConfiguration.Builder setHolderNameRequired(Boolean isHolderNameRequired)
Set if the holder name is required and should be shown as an input field.
Default is false.
- Parameters:
isHolderNameRequired- Boolean- Returns:
-
setShowStorePaymentField
final BcmcConfiguration.Builder setShowStorePaymentField(Boolean showStorePaymentField)
Set if the option to store the card for future payments should be shown as an input field.
Default is true.
Not applicable for the sessions flow. Check out the Sessions API documentation on how to set this value.
- Parameters:
showStorePaymentField- Boolean- Returns:
-
setShopperReference
final BcmcConfiguration.Builder setShopperReference(String shopperReference)
Set the unique reference for the shopper doing this transaction. This value will simply be passed back to you in the PaymentComponentData for convenience.
- Parameters:
shopperReference- The unique shopper reference- Returns:
-
setSubmitButtonVisible
BcmcConfiguration.Builder setSubmitButtonVisible(Boolean isSubmitButtonVisible)
Sets if submit button will be visible or not.
Default is True.
- Parameters:
isSubmitButtonVisible- Is submit button should be visible or not.
-
-
-
-