Payment Component
The PaymentComponent manages the data and state used by every PaymentComponentView, the MoreInformationFragment, and the BankSelectionBottomSheet.
It requires a GiniMerchant 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
Holds information about which layout to use for the bank picker: single line or two lines.
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.
Whether we need to check for returning user and hide Select your bank to pay
label.
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.
Holds information about which layout to use for the bank picker: single line or two lines.
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.
Whether we need to check for returning user and hide Select your bank to pay
label.
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.