Package com.adyen.checkout.ach
Class ACHDirectDebitConfiguration.Builder
-
- All Implemented Interfaces:
-
com.adyen.checkout.action.core.internal.ActionHandlingConfigurationBuilder,com.adyen.checkout.components.core.internal.ButtonConfigurationBuilder
public final class ACHDirectDebitConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<ACHDirectDebitConfiguration, ACHDirectDebitConfiguration.Builder> implements ButtonConfigurationBuilder
Builder to create an ACHDirectDebitConfiguration.
-
-
Constructor Summary
Constructors Constructor Description ACHDirectDebitConfiguration.Builder(Environment environment, String clientKey)Initialize a configuration builder with the required fields. ACHDirectDebitConfiguration.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. ACHDirectDebitConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)Initialize a configuration builder with the required fields and a shopper locale.
-
Method Summary
Modifier and Type Method Description ACHDirectDebitConfiguration.BuildersetSubmitButtonVisible(Boolean isSubmitButtonVisible)Sets if submit button will be visible or not. final ACHDirectDebitConfiguration.BuildersetAddressConfiguration(ACHDirectDebitAddressConfiguration addressConfiguration)Configures the address form to be shown to the shopper. final ACHDirectDebitConfiguration.BuildersetShowStorePaymentField(Boolean showStorePaymentField)Set if the option to store the ACH Direct Debit for future payments should be shown as an input field. -
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
-
ACHDirectDebitConfiguration.Builder
ACHDirectDebitConfiguration.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.
-
ACHDirectDebitConfiguration.Builder
ACHDirectDebitConfiguration.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.
-
ACHDirectDebitConfiguration.Builder
ACHDirectDebitConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)
Initialize a configuration builder with the required fields and a shopper locale.- 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
-
setSubmitButtonVisible
ACHDirectDebitConfiguration.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.
-
setAddressConfiguration
final ACHDirectDebitConfiguration.Builder setAddressConfiguration(ACHDirectDebitAddressConfiguration addressConfiguration)
Configures the address form to be shown to the shopper.
Default is ACHDirectDebitAddressConfiguration.FullAddress. Default supported countries are "US", "PR"
- Parameters:
addressConfiguration- The configuration object for address form.- Returns:
-
setShowStorePaymentField
final ACHDirectDebitConfiguration.Builder setShowStorePaymentField(Boolean showStorePaymentField)
Set if the option to store the ACH Direct Debit 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:
-
-
-
-