Package-level declarations
Types
Link copied to clipboard
This class is used in com.adyen.checkout.giftcard.internal.GiftCardComponentEventHandler and com.adyen.checkout.giftcard.internal.SessionsGiftCardComponentEventHandler to decide what action needs to be taken in partial payments flow. This class is used to distinguish separate actions that can be taken when submit button is clicked.
Link copied to clipboard
open class GiftCardComponent @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP] ) constructor(giftCardDelegate: GiftCardDelegate, genericActionDelegate: GenericActionDelegate, actionHandlingComponent: DefaultActionHandlingComponent, componentEventHandler: ComponentEventHandler<GiftCardComponentState>) : ViewModel, PaymentComponent, ViewableComponent, ButtonComponent, ActionHandlingComponent
A PaymentComponent that supports the PaymentMethodTypes.GIFTCARD payment method.
Link copied to clipboard
Implement this callback to interact with a GiftCardComponent.
Link copied to clipboard
data class GiftCardComponentState(val data: PaymentComponentData<GiftCardPaymentMethod>, val isInputValid: Boolean, val isReady: Boolean, val lastFourDigits: String?, val paymentMethodName: String?, val giftCardAction: GiftCardAction) : PaymentComponentState<GiftCardPaymentMethod> , Parcelable
Represents the state of GiftCardComponent.
Link copied to clipboard
Configuration class for the GiftCardComponent.
Link copied to clipboard
Exception thrown when an error occurs during a payment flow using Gift Cards.
Link copied to clipboard
Implement this callback to interact with a GiftCardComponent initialized with a session.
Functions
Link copied to clipboard
fun CheckoutConfiguration.giftCard(configuration: GiftCardConfiguration.Builder.() -> Unit = {}): CheckoutConfiguration