Configuration

final class Configuration : APIContextAware

Contains the configuration for the drop in component and the embedded payment method components.

  • Card component related configuration.

    Declaration

    Swift

    public var card: CardComponent.Configuration
  • The Apple Pay configuration.

    Declaration

    Swift

    public var applePay: ApplePayComponent.Configuration?
  • Payment methods list related configurations.

    Declaration

    Swift

    public var paymentMethodsList: PaymentMethodListConfiguration
  • Shopper related information

    Declaration

    Swift

    public var shopper: PrefilledShopperInformation?
  • API context used to retrieve internal resources.

    Declaration

    Swift

    public let apiContext: APIContext
  • Indicates the localization parameters, leave it nil to use the default parameters.

    Declaration

    Swift

    public var localizationParameters: LocalizationParameters?
  • The payment information.

    Declaration

    Swift

    public var payment: Adyen.Payment?
  • Determines whether to enable skipping payment list step when there is only one non-instant payment method. Default value: false.

    Declaration

    Swift

    public let allowsSkippingPaymentList: Bool
  • Determines whether to enable preselected stored payment method view step. Default value: true.

    Declaration

    Swift

    public let allowPreselectedPaymentView: Bool
  • Initializes the drop in configuration.

    Declaration

    Swift

    public init(apiContext: APIContext,
                allowsSkippingPaymentList: Bool = false,
                allowPreselectedPaymentView: Bool = true)

    Parameters

    apiContext

    The API context used to retrieve internal resources.

    allowsSkippingPaymentList

    Boolean to enable skipping payment list when there is only one one non-instant payment method.