I am writing the PHP back-end API for an Android application. The Android sends me purchase token, product name, etc and then I make this call : Purchases.products
I then acknowledge the purchase using : Purchases.products: acknowledge
Then after successfully processing the transaction on PHP API side, I would need to change the 'consumptionState' of the transaction on Google Play side to indicate that this (consumable) product has been been consumed. But nowhere can I find any example of the call needed to change the 'consumptionState'. I use google/apiclient package for the interaction with Google Play.
Can someone point me in the right direction with regards to changing 'consumptionState' for a Google Play Billing purchase?