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 provideComponent is compatible with Objective-C.

1
@objc public func provideComponent(paymentMethodType: String) -> PrimerHeadlessBanksComponentWrapper
swift
copy

Parameters

Parameters
paymentMethodType
StringRequired

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.

Returns

An instance of type PrimerHeadlessBanksComponentWrapper. The PrimerHeadlessBanksComponentWrapper conforms to PrimerHeadlessBanksComponentWrapperDelegate.

1
@objc public final class PrimerHeadlessBanksComponentWrapper: NSObject, PrimerHeadlessBanksComponentWrapperDelegate
swift
copy
PrimerHeadlessBanksComponentWrapper
PrimerHeadlessBanksComponentWrapperDelegate
Initialize the component by calling the start function. This method should be called only once.

Call submit function in order to process collected data and move component to next state.

selectBankById
selectBankById(_ bankdId: String)
Instance method to use in order to select a bank by id.
1
@objc func selectBankById(_ bankdId: String)
swift
copy
filterBankByName
filterBankByName(_ text: String)
Instance method to use in order to filter a bank by name.
1
@objc func filterBankByName(_ text: String)
swift
copy
errorDelegate
BanksComponentErrorable
Error delegate will be triggered every time an error is thrown in the process.
1
@objc func didReceiveError(_ error: NSError)
swift
copy
stepDelegate
BanksComponentSteppable

BanksComponentSteppable is a protocol that processes 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.

This is provided for the payment method type ADYEN_IDEAL and Objective-C backward compatibility.

Protocol method notifying of banks loading.
Protocol method processing issuing banks retrieved.
Properties
banks
[IssuingBank]
The issuing banks array associated with this payment flow.
12
@objc func didStartLoading()@objc func didReceiveBanks(_ banks: [IssuingBank])
swift
copy

Throws

Parameters

An error that will be thrown in case the provide method has been called using unsupported paymentMethodType.

Supported payment methods for current client session are returned in the `onAvailablePaymentMethodsLoaded` delegate.

Currently, the supported payment method types are:
  • ADYEN_IDEAL

An error that will be thrown in case the provide method fails because of sdk not correctly used.