Android · Arazzo Workflow
Android Grant and Consume a Consumable Purchase
Version 1.0.0
Verify a consumable in-app purchase, acknowledge it, then consume it so the user can buy the item again.
View Spec
View on GitHub
AIAndroidAutomotiveGoogleMachine LearningMobile DevelopmentSDKTVWearablesArazzoWorkflows
Provider
Workflows
grant-consumable-purchase
Verify, acknowledge, and consume a consumable in-app product purchase.
Validates the purchase token, acknowledges the purchase when it is still unacknowledged, consumes it, and reads the purchase back to confirm the consumption state flipped to consumed.
1
verifyPurchase
getPurchaseProduct
Validate the consumable purchase token and read its purchase and consumption state before granting anything to the user.
2
acknowledgePurchase
acknowledgePurchaseProduct
Acknowledge the purchase after the in-game currency or consumable entitlement has been credited to the user's account.
3
consumePurchase
consumePurchaseProduct
Consume the purchase so the SKU becomes available for the user to buy again. Only call this once the entitlement has actually been granted.
4
confirmConsumption
getPurchaseProduct
Read the purchase back to confirm Google Play now reports the item as consumed and therefore repurchasable.
Source API Descriptions
openapi