A
A
artshelom2019-02-27 16:59:06
Unity
artshelom, 2019-02-27 16:59:06

When buying in a store, it writes an error: initialization error. How to fix?

I'm trying to make an in-app purchase on google play.
Like here , when you click on the button from the computer, an error comes up:

BuyProductID FAIL. Not initialized.
UnityEngine.Debug:Log(Object)
MyPurchaser:BuyProductID(String) (at Assets/MyPurchaser.cs:137)
MyPurchaser:BuyConsumable() (at Assets/MyPurchaser.cs:86)
UnityEngine.EventSystems.EventSystem:Update()

From the phone, it does not even launch in google play

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-02-27
@artshelom

https://docs.unity3d.com/Manual/UnityIAPGoogleConf...
to get started. did you make your application in the console on google play? console set up? did you collect the assembly? internal testing started ??))
and that is, there is a suspicion that perhaps you only configured the Unity part.
from a computer - do not even try to test purchases. nothing will be there.
from the phone - see the log from the phone. what exactly is not initialized there,
in general, by reference, almost a complete instruction on what to do) only there is not an alpha test, but internal testing can be started)
well, you will have to fill in age restrictions, icons, etc.
And you still have to fill in the apk so that you can pass a survey on age restrictions and add in-app purchases.
good luck with all this :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question