Custom Transaction ID on Payment Intent Call


Hi, i was building a POS app based on this tutorial:

and this sample:

My doubt is this: if the application fails to intercept the response of the Payment Fragment in the onActivityResult() method, e.g. the application crashes processing the response, is it possible to recover the result of this particular payment later?

I have tried to set a custom ID on the Payment Object before the launch of the Payment Intent:

and search (by my custom ID) the transaction in the TransactionListActivity

but I have not found anything…

Is there a solution?

Many thanks


The references will be part of the transaction object. You could search for the reference in the content provider and then fetch the entire transaction using the transactionService as shown here