and the error reason is "
Purchasing Unavailable
"
I already uploaded the apk as an alpha version in google play, and I have put my email as a tester.
and I added a Managed product and used its id in the IAP script
Thank you for providing. Did you download the APK as the tester from Google Play? You need to do this first, and then subsequently you can side load. Can you confirm that you have performed all the steps here? Unity - Manual: Configuring for Google Play Store . Also, compare to the Sample project here Sample IAP Project
Thank you @JeffDUnity3D for your help, the problem was from the region,
google play IAP don’t support my region so when I used VPN It did work.
I don’t know if there’s a solution for the region. but I don’t think so.
Thank you again
hello i am facing the same problem , my IAP button does not work
i have followed this link :-Unity - Manual: Codeless IAP
i have done all the step shown in this link and some that are not shown in this link like
i imported iap plugin and fill in the google play key it needed
i have created IAP catalog and buttons perfectly and linked it with the script storeHandler (handle when onPurchaseComplete and failed)
then i exported google CSV file , and then i exported the project as .aab(<-playstore file not apk)
then i uploaded csv and .aab file to my google play console as an internal test (alpha test ) and register my email as a tester in google
after google publish my game , i downloded it from the link it generated for internal tester and there i see a failure reson → PURCHASEING UNAVAILABLE
I had my Google developer account as one of the testers. And yes I was having issues, but it turns out it was because I hadn’t initialised Unity Game Services yet. I don’t know when this became a thing, but I had numerous PurchasingNotAvailable errors lately.
I removed my developer account as a tester, yet any purchase made on my developer account, is still seen as a test card.
Initialization of Unity Game Services should have no impact here. It has no effect on IAP behavior, only IAP reporting in your Unity dashboard (we can’t send transaction events)