features/native-checkout/bloc/chapa_native_checkout_bloc library

Classes

ChapaNativeCheckoutBloc
The ChapaNativeCheckoutBloc handles the logic for processing payments through the Chapa SDK. It listens for events like payment initiation and validation, and updates the state of the payment process accordingly.
ChapaNativeCheckoutEvent
Base class for all events in the ChapaNativeCheckoutBloc.
ChapaNativeCheckoutInitial
Initial state when the payment flow has not yet started.
ChapaNativeCheckoutLoadingState
State indicating that the payment process is loading.
ChapaNativeCheckoutNetworkError
State representing a network error during the checkout process.
ChapaNativeCheckoutPaymentInitiateApiError
State representing an error that occurred during the payment initiation.
ChapaNativeCheckoutPaymentInitiateSuccessState
State representing a successful payment initiation.
ChapaNativeCheckoutPaymentValidateApiError
State representing an error that occurred during the payment validation.
ChapaNativeCheckoutPaymentValidateSuccessState
State representing the success of payment validation.
ChapaNativeCheckoutState
Base class for all states in the ChapaNativeCheckoutBloc.
ChapaNativeCheckoutUnknownError
State representing an unknown error that occurred during the checkout process.
ChapaNativeCheckoutValidationOngoingState
State indicating that payment validation is ongoing.
InitiatePayment
Event triggered to initiate the payment process.
ValidatePayment
Event triggered to validate a payment after initiation.