consumePurchase
Consumes a purchased product, allowing it to be purchased again. Call this after you have granted the user their items/credits.
For consumable products (e.g., coins, gems), you must consume the purchase to allow the user to buy it again. The flow should be:
- User purchases product
- onProductPurchased callback fires
- Grant user their items (update balance, etc.)
- Call consumePurchase(productId)
- onPurchaseConsumed callback fires (if listener set)
Parameters
productId
The product ID to consume.