InAppPurchaseResetPurchase

Description

Call this command to reset the purchase state of an individual product. On Android this must be called for consumable products after you have dealt with a purchase to allow it to be purchased again. If you call this command on a non-consumable purchase then that purchase will be reset to an unpurchased state and the user will have to pay for it again, this should only be used during testing. Subscriptions cannot be reset and must be cancelled by the user through their Google Play account

On iOS this command is not necessary as it automatically allows consumable items to be purchased multiple times, however this command could still be useful to reset the GetInAppPurchaseAvailable2 state to 0 so you know it has been dealt with. Reseting a non-consumable purchase on iOS will reset the state to 0 but iOS will still remember the purchase and not charge the user again.

Use GetInAppPurchaseToken to get the token required to reset a purchase. Currently this command is only supported on Android and iOS.

Definition

InAppPurchaseResetPurchase( token )

Parameters