iOS SDK
- Installation
- Primer
- PrimerHeadlessUniversalCheckout
- Properties
- Methods
- Delegates
- Assets manager
- Native UI manager
- Raw data manager
- Raw data manager delegate
- NOL pay manager
- Component with redirect manager
- Klarna headless manager
- ACH headless manager
- Vault manager
- Common objects
provideNolPayLinkCardComponent
This method allows you get a new instance of NolPayLinkCardComponent
that can be used to link new
Nol Pay cards.
func provideNolPayLinkCardComponent() -> NolPayLinkCardComponent
Returns
An instance of NolPayLinkCardComponent
.
Hide NolPayLinkCardComponent
Hide NolPayLinkCardComponent
Initialize the component by calling the start function. This method should be called only once.
Update component with collected data by passing an enum representing collectable data for linking a Nol Pay card. 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
Hide enum NolPayLinkCollectableData
Hide enum NolPayLinkCollectableData
Call submit
function in order to process collected data and move component to next state.
For LinkCardComponent
you must call this function as a first step, to start NFC scanning of the card.
NolPayLinkDataStep
is a enum class holding different output data
for specific steps. Whenever submit will trigger the next step in case
the call to the mentioned method was successful.
Show enum NolPayLinkDataStep
Show enum NolPayLinkDataStep
Enum member representing the step of collecting tag data for Nol Pay card linking.
This is a default/first step for linking flow. To start the linking flow you will have to call submit
function after you called start
function.
Enum member representing the step of collecting phone data for Nol Pay card linking.
Hide Properties
Hide Properties
The card number associated with the Nol Pay card scanned in collectTagData
step.
Enum member representing the step of collecting OTP (One-Time Password) data for Nol Pay card linking.
Hide Properties
Hide Properties
Phone number used for sending of OTP SMS.
Enum member representing the step of successfully linking a Nol Pay card
func didReceiveStep(step: PrimerHeadlessStep)
Validation delegate will be triggered every time collected data is updated.
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
Enum case representing the ongoing validation state. This indicates that the validation process is currently in progress.
Enum case representing a successful validation state. This indicates that the validation process has completed successfully and the data is valid.
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.
Hide Associated Value
Hide Associated Value
An array of PrimerValidationError
representing the specific validation errors found.
Error delegate will be triggered every time an error is thrown in the process.
func didReceiveError(error: PrimerError)