GiftCardComponent
public final class GiftCardComponent: PartialPaymentComponent,
PublicKeyConsumer,
PresentableComponent,
Localizable,
LoadingComponent,
Observer
A component that provides a form for gift card payments.
-
The gift card payment method.
Declaration
Swift
public var paymentMethod: PaymentMethod { get }
-
Describes the component’s UI style.
Declaration
Swift
public let style: FormComponentStyle
-
The delegate of the component.
Declaration
Swift
public weak var delegate: PaymentComponentDelegate?
-
The partial payment component delegate.
Declaration
Swift
public weak var partialPaymentDelegate: PartialPaymentDelegate?
-
The delegate that handles shopper confirmation UI when the balance of the gift card is sufficient to pay.
Declaration
Swift
public weak var readyToSubmitComponentDelegate: ReadyToSubmitPaymentComponentDelegate?
-
Initializes the card component.
Declaration
Swift
public convenience init(paymentMethod: GiftCardPaymentMethod, apiContext: APIContext, style: FormComponentStyle = FormComponentStyle())
Parameters
paymentMethod
The gift card payment method.
clientKey
The client key that corresponds to the web service user you will use for initiating the payment. See https://docs.adyen.com/user-management/client-side-authentication for more information.
style
The Component’s UI style.
-
Indicates Gift card related errors.
See moreDeclaration
Swift
public enum Error : LocalizedError