API reference
API reference
Select your platform
No SDKs available
No versions available

ovr_IAP_ConsumePurchase Function

Allow the consumable IAP product to be purchased again. Conceptually, this indicates that the item was used or consumed. Important: Make sure to pass the correct SKU of the purchase that will be consumed. This value is case- sensitive and should match exactly with the product SKU set in the Developer Dashboard. ovrMessage_IAP_ConsumePurchase will be generated in response.
First call ovr_Message_IsError() to check if an error occurred.
This response has no payload. If no error occurred, the request was successful. Yay!

Signature

ovrRequest ovr_IAP_ConsumePurchase(const char *sku)

Parameters

sku: const char * The SKU of the product of the purchase that will be consumed. This value is case-sensitive and should match exactly with the product SKU set in the Developer Dashboard.

Returns