SDK Reference - restore
The restore method resynchronizes the purchased transactions from the user's store account (Apple/Google Play).
If a transaction has never been processed by IAPHUB, it will be returned in the newPurchases array of the response.
Additionally, if an active product (subscription/non-consumable) is already associated with another user ID, the product will seamlessly transfer to the new user and will be returned in the transferredActiveProducts array of the response.
If you wish to disable this feature, you can conveniently manage it from the settings within the IAPHUB dashboard.
For apps lacking an authentication system, users can restore an active product (subscription/non-consumable), on up to 5 devices using the same Apple or Google account.
It's a good idea to let users know they can restore their purchases if they have any issue. You should add a visible button in your app that triggers the method. This is helpful if they ever have trouble accessing their subscriptions. By suggesting a restore, you can help them fix any issues and make sure they can use your app smoothly.
Example
var response = await Iaphub.restore();
Parameters
This method does not require any parameters.
Response
type
Valuesplatform
ValueswebhookStatus
ValuessubscriptionDuration
Valuestype
ValuescycleDuration
ValuessubscriptionState
ValuessubscriptionPeriodType
Valuestype
Valuesplatform
ValuessubscriptionDuration
Valuestype
ValuescycleDuration
ValuessubscriptionState
ValuessubscriptionPeriodType
Values