I’m getting the error: “Error = 6, – Fatal error during the API action.” in the google dashboard and this cause the purchase do fail and the product is charged anyway. Unity handle this error in any way? So I can restore the product or do something about it.
Please provide steps to reproduce, perhaps using the Sample IAP project https://discussions.unity.com/t/700293/3 .
I’m sorry, my last message wasn’t exactly clear on everything about this problem.
We are currently working on two platforms, Love2D and Unity3D and in the past days we were getting this error on the Love2D platform (the Error 6). Searching about this in the documentation that google provides we found that we should retry the purchase attempt in the case of that error. However we don’t know how Unity handle this same error.
So the question here is: does Unity IAP handle this error this same way? Just trying to prevent something bad to happen in our other apps.
We also don’t have any steps to reproduce this error, we only found about this reading feedback and ratings from our players.
We would likely return the same error, Unity IAP is a pass-through service for the Google Billing Library v3
We actually get a PurchaseFailureReason as a result of the purchase fail. But it’s not clear to me wich of the reasons specified in this enum relate to the error I’m mentioning.
Here is the documentation from google with all the responses, including the error I mentioned:
https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingResponseCode#ERROR
And here is the specification of the enum PurchaseFailureReason, with all the possible reasons that we can get.
https://docs.unity3d.com/Packages/com.unity.purchasing@3.0/api/UnityEngine.Purchasing.PurchaseFailureReason.html
I think the question here is, wich of those reasons in PurchaseFailureReason is triggered when the error 6 happens? (I guess it’s probably going to be the Unknow one, but I wanted to be sure)
Yes, it would likely be mapped to Unknown.