This method allows you get a new instance of NolPayPaymentComponent
that can be used to link new
Nol Pay cards.
1
fun provideNolPayPaymentComponent(viewModelStoreOwner: ViewModelStoreOwner): NolPayPaymentComponent
Parameters
The ViewModelStoreOwner to associate with the component.
Returns
An instance of NolPayPaymentComponent
.
NolPayPaymentComponent
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 componentValidationStatus and receive the validation status when it's updated.
sealed interface NolPayPaymentCollectableData
Properties
The Nol Pay payment card to use for payment is retrieved using NolPayLinkedCardsComponent.
The mobile number in E.164 format that the Nol Pay payment card was associated with.
Data class representing Nol Pay tag data collected during the payment process.
Properties
An NFC tag decoded using NolPayNfcComponent.
Call submit
function in order to process collected data and move component to next state.
NolPayPaymentStep
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 NolPayPaymentStep
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.