After creating an instance of the PrimerHeadlessUniversalCheckout.ComponentWithRedirectManager you must use one of the compatible provide methods
which will provide the component that can be used to build the flow.
The method provideBanksComponent is backward compatible with older versions of iOS.
SWIFT
public func provideBanksComponent(paymentMethodType: String) throws -> any PrimerHeadlessMainComponent
A unique string identifier for the payment method. Supported payment methods for current client session are returned in primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods.
For Component with redirect manager, the supported payment method is ADYEN_IDEAL.
An instance conforming to the PrimerHeadlessMainComponent protocol.
The PrimerHeadlessMainComponent protocol conforms to the PrimerHeadlessCollectDataComponent protocol.
PrimerValidationStatus is an enum that represents the different validation statuses in the Primer SDK. It helps to communicate the state of validation for a particular process, providing clear categorization of validation states.
Enum case representing an unsuccessful validation state due to validation errors.
This indicates that the validation process has completed but has found one or more errors in the data.
BanksStep is a enum class holding different output data for
specific steps. Whenever submit
method is called, stepDelegate will trigger the next step in case
the call to the mentioned method was successful.
In the case of ADYEN_IDEAL, the steps return will be of type
BanksStep
Update component with collected data by passing an enum representing collectable data. This method can be called at any point, even if you have only partially collected data.
To validate the partially collected data, you can refer to the validationDelegate.In case of ADYEN_IDEAL, the Data will be of type BanksCollectableData