I would like to know how I can set consumable purchase to inactive state after the user has used the product. For example, in my app, I have a consumable purchase that the user can use one time and then after that, I want to set that purchased product's entitlement state to inactive so that the user would have to buy it the next time before they can use the product.
Any help with this will be very useful and much appreciated.