This shows you the differences between the selected revision and the current
version of the page.
wmelite:store 2011/07/30 15:50 | wmelite:store 2011/07/30 15:57 current | ||
---|---|---|---|
Line 64: | Line 64: | ||
If there are any restored transactions, the script will receive the 'TransactionsUpdated' event once they are redelivered. Also the script will always receive either the 'TransactionsRestoreFinished' or 'TransactionsRestoreFailed' events. | If there are any restored transactions, the script will receive the 'TransactionsUpdated' event once they are redelivered. Also the script will always receive either the 'TransactionsRestoreFinished' or 'TransactionsRestoreFailed' events. | ||
+ | |||
+ | ==== Store.UnlockProduct(productId) ==== | ||
+ | This method marks a specified product ID as unlocked (purchased). This information is stored in application settings and is therefore available even when the application is quit and restarted. | ||
+ | |||
+ | Note that this information is lost if the user uninstalls and reinstalls the application. The application must provide means of restoring previous purchases using the Store.RestoreTransactions() method. | ||
+ | |||
+ | |||
+ | ==== Store.IsProductUnlocked(productId) ==== | ||
+ | This method returns **true** if the product with specified ID has been previously purchased. | ||