Package com.adyen.checkout.giftcard
Class GiftCardConfiguration.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 GiftCardConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<GiftCardConfiguration, GiftCardConfiguration.Builder> implements ButtonConfigurationBuilder
Builder to create a GiftCardConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisPinRequiredprivate BooleanisSubmitButtonVisible
-
Constructor Summary
Constructors Constructor Description GiftCardConfiguration.Builder(Environment environment, String clientKey)Initialize a configuration builder with the required fields. GiftCardConfiguration.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. GiftCardConfiguration.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 final BooleanisPinRequired()final UnitsetPinRequired(Boolean isPinRequired)final BooleanisSubmitButtonVisible()final UnitsetSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)GiftCardConfiguration.BuildersetSubmitButtonVisible(Boolean isSubmitButtonVisible)Sets if submit button will be visible or not. final GiftCardConfiguration.BuildersetPinRequired(Boolean isPinRequired)Set if the PIN field should be hidden from the Component and not requested to the shopper. -
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
-
GiftCardConfiguration.Builder
GiftCardConfiguration.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.
-
GiftCardConfiguration.Builder
GiftCardConfiguration.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.
-
GiftCardConfiguration.Builder
GiftCardConfiguration.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
-
isPinRequired
final Boolean isPinRequired()
-
setPinRequired
final Unit setPinRequired(Boolean isPinRequired)
-
isSubmitButtonVisible
final Boolean isSubmitButtonVisible()
-
setSubmitButtonVisible
final Unit setSubmitButtonVisible(@Deprecated(message = "Configure this in CheckoutConfiguration instead.") Boolean isSubmitButtonVisible)
-
setSubmitButtonVisible
GiftCardConfiguration.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.
-
setPinRequired
final GiftCardConfiguration.Builder setPinRequired(Boolean isPinRequired)
Set if the PIN field should be hidden from the Component and not requested to the shopper. Note that this might have implications for the transaction.
Default is true.
- Parameters:
isPinRequired- If PIN should be hidden or not.
-
-
-
-