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
public final class BcmcConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<BcmcConfiguration, BcmcConfiguration.Builder> implements ButtonConfigurationBuilder
Builder to create a BcmcConfiguration.
-
-
Constructor Summary
Constructors Constructor Description 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 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, addVoucherActionConfiguration, addWeChatPayActionConfiguration -
Methods inherited from class com.adyen.checkout.components.core.internal.BaseConfigurationBuilder
build, setAmount, setAnalyticsEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
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
-
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
-
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 false.
When using
sessionsshow store payment field will be ignored and replaced with the value sent to/sessionscall.- Parameters:
showStorePaymentField- Boolean
-
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
-
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.
-
-
-
-