- Home /
Unity In app purchases - non-consumable Duplicate Transaction on Android
Dear friends,
I am trying to implement Unity Purchasing functionality. Everything looks quite straight forward and works as well. However looking at the logs during the initialization of the purchases I wonder why do I get "OnPurchaseFail" and reason DuplicateTransaction. This happens after I buy non-consumable product. I know that on Android the OnInitialize() triggers automatic purchases restore, that's fine but then why it fails? I have followed this guide: https://unity3d.com/learn/tutorials/topics/ads-analytics/integrating-unity-iap-your-game Nothing added from myself. Is there a way to check what goes wrong? Or is it just a normal behavior and I have to live with it?
If any code is needed - I can share it, but it's pretty much the same as at the guide-page.
Hope to hear from you soon! Thanks in advance!
I have the same issue. Did you ever find a solution to it?
Answer by funx · Apr 07, 2017 at 04:07 PM
Same issue here. I think I'll just add an ignore if.
funx, how are going to ignore it? In my case I simply can't use the non-consumable products because they won't restore. I might be doing something wrong maybe but I have followed already 2 different implementation guides and still no luck.. So far I am using PlayerPrefs to disable some functionality as it would be with non-consumables.