NolPayPaymentComponent that can be used to link new
nol Pay cards.
SWIFT
func provideNolPayStartPaymentComponent() -> NolPayPaymentComponent
Returns
An instance ofNolPayPaymentComponent.
Hide NolPayPaymentComponent
Hide NolPayPaymentComponent
Initialize the component by calling the start function. This method should be called only once.
Update component with collected data by passing implementations of sealed interface representing collectable data for payment flow with 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 NolPayPaymentCollectableData
Hide enum NolPayPaymentCollectableData
Data class representing nol Pay card and phone data used in payment process.
Hide Properties
Hide Properties
The nol Pay payment card number to use for payment is retrieved using NolPayLinkedCardsComponent.
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.PrimerHeadlessSteppableDelegate
NolPayPaymentState 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.
Hide enum NolPayPaymentStep
Hide enum NolPayPaymentStep
SWIFT
func didReceiveStep(step: PrimerHeadlessStep)
PrimerHeadlessValidatableDelegate
Validation delegate will be triggered every time collected data is updated.
SWIFT
func didUpdate(validationStatus: PrimerValidationStatus, for data: PrimerCollectableData?)
Enum
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
[PrimerValidationError]
An array of
PrimerValidationError representing the specific validation errors found.PrimerHeadlessErrorableDelegate
Error delegate will be triggered every time an error is thrown in the process.
SWIFT
func didReceiveError(error: PrimerError)