Hi All,
I am just curious if my assumptions are correct around restoring in app purchases.
A user purchases a non-consumable inapp.
-
I will store the event.transaction.receipt during the transaction callback if all is well
-
unlock / download the purchased inapp based on the product identifier
A user uninstalls my app (foolish I know, it is a really fun app)
A user re-installs my app and hits restore purchases (they realize how much fun they were having)
-
I will receive each product from my product list in a callback
-
I will compare the receipt I stored from the original purchase with the receipt in the restore callback
-
if the receipt matches this is a valid restore and unlock / download inapp
-
if the receipt doesn’t match this is a hacker trying to bypass the purchase and I ignore it
My real concerns are steps 3 / 4…is this the correct way to go?
As an aside, I have seen an issue in the forum with restore purchases being hit when no purchases have ever been made and no callback ever occurs…so we get a hang-o-rama…is this a remaining issue?
Thanks,
Rick