Soomla OnRestoreTransactionsFinished always got TRUE

I am currently working on a mobile game using Unity3D and Soomla for the in-app purchases part. I am currently trying to implement the "restore" functionality for a non-consumable item (I only have 1 which is "No Ads"). To do this; I used the "SoomlaStore.RestoreTransactions" functions and restored the item if "OnRestoreTransactionsFinished" got true.

The problem is that whenever "OnRestoreTransactionsFinished" is called, the resulting value will always be TRUE, even if that device / account has never purchased an item before. According to the Soomla website;

success is a boolean value that says if hass restore transactions succeed or fail

I do not understand something? Will the value always be true even if the account has never purchased an item before? Does this mean that I need to use something else to check if the item should be restored and that my way of doing something is completely wrong now? Thank.

+3


source to share


1 answer


For future readers ... OnRestoreTransactionsFinished returns whether transactions have been restored or not. It doesn’t tell you what products or anything else.



Calling the RestoreTransactions function will raise the OnMarketPurchased event for each restored item, so you can use it to update your application with every restored item.

+1


source







All Articles