I have unique business logic requirement where I need to cancel or stop user from proceeding with Google pay if timer that is running in the background runs out.
Suppose user clicked Google pay button, then we use
AutoResolveHelper.resolveTask<PaymentData>(futurePayTask, this, LOAD_PAYMENT_DATA_REQUEST_CODE)
This should return onactivityresult
if user performs cancel or success but I want to forcefully cancel if timer runs out.
Google sheet open as shown here: