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
Parameters
Parameters
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
PrimerHeadlessBanksComponentWrapper
PrimerHeadlessBanksComponentWrapperDelegate
Call submit
function in order to process collected data and move component to next state.
1
@objc func selectBankById(_ bankdId: String)
1
@objc func filterBankByName(_ text: String)
1
@objc func didReceiveError(_ error: NSError)
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.
Properties
12
@objc func didStartLoading()@objc func didReceiveBanks(_ banks: [IssuingBank])
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.