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

Parameters

Returns

An instance conforming to the PrimerHeadlessMainComponent protocol. The PrimerHeadlessMainComponent protocol conforms to the PrimerHeadlessCollectDataComponent protocol.

Throws