Payment Component
The PaymentComponent manages the data and state used by every PaymentComponentView, the MoreInformationFragment, and the BankSelectionBottomSheet.
It requires a GiniHealth instance and a Context (application or activity) to be created.
Constructors
Types
A listener for the PaymentComponent. It exposes the user interactions with all of the PaymentComponentViews.
Functions
A listener for the payment component. It exposes the user interactions with all of the PaymentComponentViews. See Listener for the methods you need to implement.
A StateFlow which emits the state of the payment provider apps. See PaymentProviderAppsState for the possible states.
Loads the extractions for the given document id and creates an instance of the ReviewFragment with the given configuration.
A StateFlow which emits whether the user is a returning one or not.
A StateFlow which emits the state of the selected payment provider app. See SelectedPaymentProviderAppState for the possible states.
Loads the payment provider apps and selects the first installed payment provider app or nothing if no payment provider app is installed. The selection (or lack of selection) will be visible once a PaymentComponentView is shown.
A listener for the payment component. It exposes the user interactions with all of the PaymentComponentViews. See Listener for the methods you need to implement.
Properties
A listener for the payment component. It exposes the user interactions with all of the PaymentComponentViews. See Listener for the methods you need to implement.
A StateFlow which emits the state of the payment provider apps. See PaymentProviderAppsState for the possible states.
A StateFlow which emits the state of the selected payment provider app. See SelectedPaymentProviderAppState for the possible states.