Iap Purchase fails "needs to be consumed first"

I am able to succesfully init and log in to the sandbox test user. When I purchase the item though I get the error: “Purchase failed: invalid operation: iap chip_0300 needs to be consumed first”. I have not seen anything relating to this in the docs and I don’t really know what I need to change in order to fix this. Help pls

6563002--743695--consumedfirst.PNG

Turns out our server wasn’t able to confirm the purchase because it had the wrong client id. So the purchase was stuck in “pending” status. Got it fixed when setting the correct client id and secret on our server