Package com.adyen.checkout.twint
Class TwintConfiguration.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 TwintConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<TwintConfiguration, TwintConfiguration.Builder> implements ButtonConfigurationBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisSubmitButtonVisibleprivate BooleanshowStorePaymentFieldprivate ActionHandlingMethodactionHandlingMethod
-
Constructor Summary
Constructors Constructor Description TwintConfiguration.Builder(Environment environment, String clientKey)Initialize a configuration builder with the required fields. TwintConfiguration.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. TwintConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)Builder with parameters for a TwintConfiguration.
-
Method Summary
Modifier and Type Method Description final BooleanisSubmitButtonVisible()final UnitsetSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)final BooleangetShowStorePaymentField()final UnitsetShowStorePaymentField(Boolean showStorePaymentField)final ActionHandlingMethodgetActionHandlingMethod()final UnitsetActionHandlingMethod(ActionHandlingMethod actionHandlingMethod)final TwintConfiguration.BuildersetShowStorePaymentField(Boolean showStorePaymentField)Set if the option to store the shopper's account for future payments should be shown as an input field. final TwintConfiguration.BuildersetActionHandlingMethod(ActionHandlingMethod actionHandlingMethod)Sets the method used to handle actions. TwintConfiguration.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
-
TwintConfiguration.Builder
TwintConfiguration.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.
-
TwintConfiguration.Builder
TwintConfiguration.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.
-
TwintConfiguration.Builder
TwintConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)
Builder with parameters for a TwintConfiguration.- 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
-
isSubmitButtonVisible
final Boolean isSubmitButtonVisible()
-
setSubmitButtonVisible
final Unit setSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)
-
getShowStorePaymentField
final Boolean getShowStorePaymentField()
-
setShowStorePaymentField
final Unit setShowStorePaymentField(Boolean showStorePaymentField)
-
getActionHandlingMethod
final ActionHandlingMethod getActionHandlingMethod()
-
setActionHandlingMethod
final Unit setActionHandlingMethod(ActionHandlingMethod actionHandlingMethod)
-
setShowStorePaymentField
final TwintConfiguration.Builder setShowStorePaymentField(Boolean showStorePaymentField)
Set if the option to store the shopper's account 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:
-
setActionHandlingMethod
final TwintConfiguration.Builder setActionHandlingMethod(ActionHandlingMethod actionHandlingMethod)
Sets the method used to handle actions. See ActionHandlingMethod for the available options.
Default is ActionHandlingMethod.PREFER_NATIVE.
-
setSubmitButtonVisible
TwintConfiguration.Builder setSubmitButtonVisible(Boolean isSubmitButtonVisible)
Sets if submit button will be visible or not.
Default is true.
- Parameters:
isSubmitButtonVisible- If submit button should be visible or not.
-
-
-
-