Hello everyone,
I am trying really hard to get UnityIAP working for Android (Google Play) but it doesn’t seem to work.
For configuration and scripting, I followed the exact steps showed in those two tutorials : 1 , 2.
My purchasing code looks a lot like the Purchaser script from the first tutorial mentioned above. I just removed the unneeded parts (I only target Android for now and I just want to sell non-consumable content), changed the products ids to match those I entered in Google Play developer console, and added my unlock code (which is why I don’t publish the code here).
Everything works well in the editor, I get all the correct logs :
The Unlock function gets called and the content is unlocked correctly.
But as soon as I try to test it on a real android device, it doesn’t work anymore.
Here are the steps I follow to test it (maybe I am doing something wrong here) :
1 - Build a signed apk.
2 - Upload it on Google Play dev console (Alpha test).
3 - Wait several hours for the updated app to be processed.
4 - Download the app with an android device (I tried several different devices) using a different account than mine (this account has been registered as an alpha tester).
5 - Launch the app and Push my buy button.
When I push that button nothing happens. When I look at the adb logs, I get two errors :
First :
Second :
The second is obviously a consequence of the first.
The documentation says :
I don’t know what to do from now. I tried to look for a way to enable IAP in the android parameters, I disabled the authentication requirement which didn’t change anything, I added a valid credit card, but no luck…
So now I’m really stuck and I would really appreciate all the help you can give me !
P.S : I’m using Unity 5.3.1f1, and UnityIAP 1.7 (also tried the brand new 1.8 with no luck)