Restoring In App Purchases for iOS using Unity

I want to create a button that allows the user to restore their In App purchases if they ever delete and re-install the game.

I am using Unity 4 for iOS specifically.

I have done this in objective-c using Cocos2D but I know that it does not work the same way.

Does anyone know any code snippets or links to a tutorial that can help me gain access to what has been purchased and restore these for the user?

Would be greatly appreciated.

If using Unity IAP to access the user account’s IAP, then use the iOS store Extension API to trigger the restoration.

Docs: Unity - Manual: iOS & Mac App Stores

// Inside class inheriting from Unity IAP IStoreListener interface
public void OnInitialized(IStoreController controller, IExtensionProvider extensions)
{
    extensions.GetExtension ().RestoreTransactions (result => {
        if (result) {
            // This does not mean anything was restored,
            // merely that the restoration process succeeded.
        } else {
            // Restoration failed.
        }
    });
}