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
public final class GiftCardConfiguration.Builder extends ActionHandlingPaymentMethodConfigurationBuilder<GiftCardConfiguration, GiftCardConfiguration.Builder> implements ButtonConfigurationBuilder
Builder to create a GiftCardConfiguration.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
Modifier and Type Method Description 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, addVoucherActionConfiguration, addWeChatPayActionConfiguration -
Methods inherited from class com.adyen.checkout.components.core.internal.BaseConfigurationBuilder
build, setAmount, setAnalyticsConfiguration -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
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.- 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
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.
-
-
-
-