IAP return PurchaseFailureReason Unknown. Android (Google Play)

You can only make an actual purchase on a device, not through the fake store in the Editor. On a device, OnPurchaseFailed is indeed called. Also, you’ll want to avoid Codeless IAP, it has not been updated in some time and is missing features. You might want to start with the Sample IAP Project here: https://discussions.unity.com/t/700293/4