When attempting to pay with the codeless inapp button, the following error message is displayed.
The receipt is printed out.
What can you try on this issue?
logcat log
IAPButton.PurchaseProduct() with product ID: com.xxxx.yyyy.android.gold_ten
purchase({0}): com.xxxx.yyyy.android.gold_ten
onPurchaseFailedEvent({0}): productId:com.xxxx.yyyy.android.gold_ten message:PurchaseState is UNSPECIFIED_STATE, no more details exists {M: GPUL.OPO}
Welcome to the Unity Forum! Has IAP worked for you in the past? Can you provide a little background and steps to reproduce? Can you show a screenshot of your IAP Button properties in the Inspector? What version of Unity, what version of IAP? What Android device are you testing on? Please show a screenshot of your Google Play developer dashboard showing this ProductID. Youāll want to ensure you follow the directions here Unity - Manual: Configuring for Google Play Store
We are not familiar with this behavior. What changed in December? Can you confirm if you see the same problem with scripted IAP, perhaps test with the Sample IAP Project here? Sample IAP Project
This is happening to me also, I just implemented IAP a couple of days ago (from learning portal of unity) and I Get the same error or āOnPurchaseFailed: FAIL. Product: ānoadsā, PurchaseFailureReason: Unknownā
I understand, what I meant is that sometimes in some of the test builds I created (android) I get the āUNSPECIFIED_STATEā and sometimes the PurchaseFailureReason: Unknown". So I was guessing that maybe they are related
Ah got it. Are you using Codeless IAP also? What version of IAP? The latest is Unity IAP Asset version 2.2.5 and In App Purchasing library 2.2.1 in Package Manager (both components are required)
You have a Codeless IAP Button in your scene so itās initializing IAP twice. Please compare to the Sample IAP Project. Youāll want to remove Codeless components from your project.
It was because I had some products added in the cataloge + the IAP listener, I removed them, and I donāt get the codeless Init but I still get the same erros