Class CashAppPayConfiguration.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 CashAppPayConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<CashAppPayConfiguration, CashAppPayConfiguration.Builder> implements ButtonConfigurationBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisSubmitButtonVisibleprivate CashAppPayEnvironmentcashAppPayEnvironmentprivate StringreturnUrlprivate BooleanshowStorePaymentFieldprivate BooleanstorePaymentMethod
-
Constructor Summary
Constructors Constructor Description CashAppPayConfiguration.Builder(Environment environment, String clientKey)Initialize a configuration builder with the required fields. CashAppPayConfiguration.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. CashAppPayConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)Builder with parameters for a CashAppPayConfiguration.
-
Method Summary
Modifier and Type Method Description final BooleanisSubmitButtonVisible()final UnitsetSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)final CashAppPayEnvironmentgetCashAppPayEnvironment()final UnitsetCashAppPayEnvironment(CashAppPayEnvironment cashAppPayEnvironment)final StringgetReturnUrl()final UnitsetReturnUrl(String returnUrl)final BooleangetShowStorePaymentField()final UnitsetShowStorePaymentField(Boolean showStorePaymentField)final BooleangetStorePaymentMethod()final UnitsetStorePaymentMethod(Boolean storePaymentMethod)final CashAppPayConfiguration.BuildersetCashAppPayEnvironment(CashAppPayEnvironment cashAppPayEnvironment)Sets the environment to be used by Cash App Pay. final CashAppPayConfiguration.BuildersetReturnUrl(String returnUrl)Sets the required return URL that Cash App Pay will redirect to at the end of the transaction. final CashAppPayConfiguration.BuildersetShowStorePaymentField(Boolean showStorePaymentField)Set if the option to store the shopper's account for future payments should be shown as an input field. final CashAppPayConfiguration.BuildersetStorePaymentMethod(Boolean storePaymentMethod)Set if the shopper's account should be stored, when the store payment method switch is not presented to the shopper. CashAppPayConfiguration.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
-
CashAppPayConfiguration.Builder
CashAppPayConfiguration.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.
-
CashAppPayConfiguration.Builder
CashAppPayConfiguration.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.
-
CashAppPayConfiguration.Builder
CashAppPayConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)
Builder with parameters for a CashAppPayConfiguration.- 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)
-
getCashAppPayEnvironment
final CashAppPayEnvironment getCashAppPayEnvironment()
-
setCashAppPayEnvironment
final Unit setCashAppPayEnvironment(CashAppPayEnvironment cashAppPayEnvironment)
-
getReturnUrl
final String getReturnUrl()
-
setReturnUrl
final Unit setReturnUrl(String returnUrl)
-
getShowStorePaymentField
final Boolean getShowStorePaymentField()
-
setShowStorePaymentField
final Unit setShowStorePaymentField(Boolean showStorePaymentField)
-
getStorePaymentMethod
final Boolean getStorePaymentMethod()
-
setStorePaymentMethod
final Unit setStorePaymentMethod(Boolean storePaymentMethod)
-
setCashAppPayEnvironment
final CashAppPayConfiguration.Builder setCashAppPayEnvironment(CashAppPayEnvironment cashAppPayEnvironment)
Sets the environment to be used by Cash App Pay.
If not set, it will match the Adyen environment.
- Parameters:
cashAppPayEnvironment- The Cash App Pay environment.
-
setReturnUrl
final CashAppPayConfiguration.Builder setReturnUrl(String returnUrl)
Sets the required return URL that Cash App Pay will redirect to at the end of the transaction.
Not applicable for the sessions flow. Check out the Sessions API documentation on how to set this value.
- Parameters:
returnUrl- The Cash App Pay environment.
-
setShowStorePaymentField
final CashAppPayConfiguration.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:
-
setStorePaymentMethod
final CashAppPayConfiguration.Builder setStorePaymentMethod(Boolean storePaymentMethod)
Set if the shopper's account should be stored, when the store payment method switch is not presented to the shopper.
Only applicable if showStorePaymentField is false.
Default is false.
- Parameters:
storePaymentMethod- Boolean- Returns:
-
setSubmitButtonVisible
CashAppPayConfiguration.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.
-
-
-
-