I'm make some tests with the new billing library, to change it in my app.
I have only in-app products - to disable ads - not subscriptions.
I tested the purchase and it's OK, but if I cancel (refund) the purchase in Play Console and if I check the state of the product, it still show "STATE_PURCHASED".
How I can check if the order was cancelled, to show the ads again?
Yes. If had a change in the status, I'll post here, but I want to know if there is a way to check this, because the purchased was confirm with refunded.
Thanks, but that doesn't solve the problem here.
I cannot ask the user to clear the data from the Play Store app, after he asks for a refund.
I'm doing some research and I think that there is no option to check this in the app (if the refund request was made). It will always show the product as purchased after the purchase is made.
By the way, clearing the data doesn't work either. The app continues to recognize the purchase as made, even after the refund.