PaymentScreenViewModel
class PaymentScreenViewModel(defaultRepository: ERROR CLASS: Symbol not found for DefaultRepository, credentialStorage: CredentialStorage, dispatchers: DispatcherProvider, sampleConfig: SampleConfig) : BaseScreenViewModel
ViewModel for the Collection Payment (V2) screen. Showcases createPayment → getPaymentStatus against the SDK, keyed on a locally generated reference ID.
The last operation's outcome (reference ID, status payload, or error) is exposed via result and rendered in a console panel so the flow is visible to developers exploring the SDK.
Constructors
Link copied to clipboard
constructor(defaultRepository: ERROR CLASS: Symbol not found for DefaultRepository, credentialStorage: CredentialStorage, dispatchers: DispatcherProvider, sampleConfig: SampleConfig)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The reference ID of the last created payment; enables the status action.
Link copied to clipboard
Link copied to clipboard
Controls whether the circular progress indicator is shown instead of the screen content.
Link copied to clipboard
val snackBarStateFlow: ERROR CLASS: Symbol not found for SharedFlow<io/rekast/sdk/sample/utils/SnackBarComponentConfiguration>
Flow of SnackBarComponentConfiguration events to be displayed as snack bars.
Functions
Link copied to clipboard
Fetches the status of the previously created payment and prints the raw payload.
Link copied to clipboard
Creates a payment with a fresh reference ID and stores that ID for the status action.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard