-
- All Implemented Interfaces:
-
com.adyen.checkout.components.base.AmountConfigurationBuilder
public final class CashAppPayConfiguration.Builder extends BaseConfigurationBuilder<CashAppPayConfiguration> implements AmountConfigurationBuilder
Builder to create a CashAppPayConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private StringbuilderClientKeyprivate EnvironmentbuilderEnvironmentprivate LocalebuilderShopperLocale
-
Constructor Summary
Constructors Constructor Description CashAppPayConfiguration.Builder(Context context, String clientKey)Constructor for Builder with default values. CashAppPayConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)Builder with required parameters. CashAppPayConfiguration.Builder(CashAppPayConfiguration configuration)Constructor that copies an existing configuration.
-
Method Summary
Modifier and Type Method Description final StringgetBuilderClientKey()final UnitsetBuilderClientKey(String builderClientKey)final EnvironmentgetBuilderEnvironment()final UnitsetBuilderEnvironment(Environment builderEnvironment)final LocalegetBuilderShopperLocale()final UnitsetBuilderShopperLocale(Locale builderShopperLocale)CashAppPayConfiguration.BuildersetShopperLocale(Locale builderShopperLocale)CashAppPayConfiguration.BuildersetEnvironment(Environment builderEnvironment)final CashAppPayConfiguration.BuildersetCashAppPayEnvironment(CashAppPayEnvironment cashAppPayEnvironment)Sets the environment to be used by Cash App Pay. CashAppPayConfiguration.BuildersetAmount(Amount amount)Sets the required amount to launch 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. -
-
Constructor Detail
-
CashAppPayConfiguration.Builder
CashAppPayConfiguration.Builder(Context context, String clientKey)
Constructor for Builder with default values.- Parameters:
context- A contextclientKey- Your Client Key used for network calls from the SDK to Adyen.
-
CashAppPayConfiguration.Builder
CashAppPayConfiguration.Builder(Locale shopperLocale, Environment environment, String clientKey)
Builder with required parameters.- Parameters:
shopperLocale- The Locale of the shopper.environment- The Environment to be used for network calls to Adyen.clientKey- Your Client Key used for network calls from the SDK to Adyen.
-
CashAppPayConfiguration.Builder
CashAppPayConfiguration.Builder(CashAppPayConfiguration configuration)
Constructor that copies an existing configuration.- Parameters:
configuration- A configuration to initialize the builder.
-
-
Method Detail
-
getBuilderClientKey
final String getBuilderClientKey()
-
setBuilderClientKey
final Unit setBuilderClientKey(String builderClientKey)
-
getBuilderEnvironment
final Environment getBuilderEnvironment()
-
setBuilderEnvironment
final Unit setBuilderEnvironment(Environment builderEnvironment)
-
getBuilderShopperLocale
final Locale getBuilderShopperLocale()
-
setBuilderShopperLocale
final Unit setBuilderShopperLocale(Locale builderShopperLocale)
-
setShopperLocale
CashAppPayConfiguration.Builder setShopperLocale(Locale builderShopperLocale)
-
setEnvironment
CashAppPayConfiguration.Builder setEnvironment(Environment builderEnvironment)
-
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.
-
setAmount
CashAppPayConfiguration.Builder setAmount(Amount amount)
Sets the required amount to launch Cash App Pay.
The only supported currency is CheckoutCurrency.USD.
- Parameters:
amount- the amount of the transaction
-
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.
- 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.
- Parameters:
showStorePaymentField- Boolean
-
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
-
-
-
-