I'm developing a android wallet application using Jetpack Compose and Kotlin. One challenge I'm facing is how to automatically retrieve the payment status once the user has completed a transaction. I'm unsure of the approach to implement this feature seamlessly within my app. Any suggestions or insights on how to achieve this would be greatly appreciated. Thank you!
I'm currently retrieving the transaction status every 10 seconds, but I feel it's not ideal as it could affect performance.