Hey guys,
So I’ve made this purchase on my app, and after uninstall and reinstall when i try to purchase again
i get this response:
I/Corona ( 8697): [IAP] state: failed
I/Corona ( 8697): [IAP] errorType: 7
I/Corona ( 8697): [IAP] errorString: Unable to buy item (response: 7:Item Already Owned)
I/Corona ( 8697): [IAP] Transaction failed, type: 7 Unable to buy item (response: 7:Item Already Owned)
All purchases are NON consumable. (one time only purchases)
Now, this is fine and as expected,also, i have in the main menu a button for “Restore Purchase”, but yet again, what if the user in not restoring, but pressing the normal purchase button in the app, he will see no feedback of successful purchase (and the above log will be written to the console), so my question is:
Upon pressing the purchase button, is there a way to tell if the user already purchased this item in the past? surly i can do a string check on the ‘event.transaction.errorString’ to see if it contains “Item Already Owned” but what if tomorrow google replaces this string to something else?
How do you deal with this situation?
thanks in advance
Roy.