Skip to main content

Restoring Purchases

This is used to restore valid subscriptions, non-consumable products, and non-renewable products for a user. When there is no valid subscription, the 'success' in the block will return a false value. Calling this interface will directly call the AppleService verification interface. There is a quota restriction for this interface for each app, so it is strictly prohibited to call when starting the app and to call it too frequently. It is recommended to call it only when the purchase information fails to be inquired because the user changed their phone or reinstalled the app.

Market.getInstance().restorePurchase(new OnRestorePurchaseListener() {
@Override
public void onSuccess(List<MTGPurchase> purchases) {
}

@Override
public void onError(int resultCode) {
}
});

Next Steps

User Benefits