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 provide is compatible with iOS 13 and above.
@available(iOS 13, *)
public func provide<PrimerHeadlessMainComponent>(paymentMethodType: String) throws -> PrimerHeadlessMainComponent? where PrimerCollectableData: Any, PrimerHeadlessStep: Any
Parameters
Hide Parameters
Hide Parameters
primerHeadlessUniversalCheckoutDidLoadAvailablePaymentMethods.
For Component with redirect manager, the supported payment method is ADYEN_IDEAL.Type parameters
Hide Type Parameters
Hide Type Parameters
The type of the PrimerHeadlessMainComponent implementation to
return.
Hide Supported types
Hide Supported types
| Type | paymentMethodType |
|---|---|
| BanksComponent | ADYEN_IDEAL |
Returns
An instance conforming to thePrimerHeadlessMainComponent protocol.
The PrimerHeadlessMainComponent protocol conforms to the PrimerHeadlessCollectDataComponent protocol.
Hide PrimerHeadlessMainComponent
Hide PrimerHeadlessMainComponent
Hide PrimerHeadlessCollectDataComponent
Hide PrimerHeadlessCollectDataComponent
submit function in order to process collected data and move component to next state. func didReceiveError(error: PrimerError)
func didUpdate(validationStatus: PrimerValidationStatus, for data: PrimerCollectableData?)
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.Hide enum PrimerValidationStatus
Hide enum PrimerValidationStatus
Hide Associated Value
Hide Associated Value
PrimerValidationError representing the specific validation errors found.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
Show enum BanksStep
Show enum BanksStep
Hide Properties
Hide Properties
func didReceiveStep(step: PrimerHeadlessStep)
BanksCollectableDataHide Supported types
Hide Supported types
The BanksComponent provides a protocol extending the PrimerHeadlessMainComponent protocol where Data is of type BanksCollectableData and Step is of type BanksStep
public protocol BanksComponent: PrimerHeadlessMainComponent where Data == BanksCollectableData, Step == BanksStep { }
Throws
Hide Throws
Hide Throws
paymentMethodType.Supported payment methods for current client session are returned in the onAvailablePaymentMethodsLoaded delegate.
- ADYEN_IDEAL