This method allows you get a new instance of NolPayLinkCardComponent
that can be used to link new
Nol Pay cards.
1
fun provideNolPayLinkCardComponent(viewModelStoreOwner: ViewModelStoreOwner): NolPayLinkCardComponent
Parameters
The ViewModelStoreOwner to associate with the component.
Returns
An instance of NolPayLinkCardComponent
.
NolPayLinkCardComponent
Update component with collected data by passing implementations of sealed interface 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 componentValidationStatus and receive the validation status when it's updated.
sealed interface NolPayLinkCollectableData
Data class representing Nol Pay tag data collected during the linking process.
Properties
An NFC tag decoded using NolPayNfcComponent.
Properties
The mobile number in E.164 format to associate the Nol Pay payment card with.
Properties
Call submit
function in order to process collected data and move component to next state.
NolPayLinkCardStep
is a class holding different output data for specific steps. Whenever start or submit methods are called,componentStep
will trigger the next step in case the call to the mentioned method was successful.
sealed interface NolPayLinkCardStep
Object representing the step of collecting tag data for Nol Pay card linking.
Properties
The card number associated with the Nol Pay card scanned in CollectTagData
step.
Properties
The mobile number to which OTP code was sent to.
Properties
The linked Nol Pay card.
The PrimerValidationStatus
interface encompasses a range of validation statuses.
sealed interface PrimerValidationStatus
Properties
The data being validated.
Properties
The successfully validated data.
Properties
List of PrimerValidationError
objects that represent data validation errors emitted by this component.
Properties
The data that failed validation.
Properties
The specific PrimerError
that occurred during validation.
The data for which the error occurred.
Get a Flow of PrimerError objects that represent errors emitted by this component. Subscribers can observe and handle errors using this Flow.