while buying consumable using in app purchase on android, you already own this item issue

so while purchasing a consumable product from store when i turn off network and let that purchase fail and then reconnect and try again it shows Error: you already own this item .

Sounds like a state management issue, but from limited info very difficulted to tell