IAP Error Purchasing M: GPUL.HEC

Hi everyone, i have an error when i purchase an item only on my built apk (works fine in editor):
“unable to purchase requested item” .
When i see my log , i have this :
onPurchaseFailedEvent(productId:coin_50 message: {M: GPUL.HEC})
Then :
onPurchaseFailed : FAIL.Product ‘coin_50’, PurchaseFailureReason: Unknown.
May you help me please ?

I have Unity AP version : 3.0.1 on Unity 2019.4.25f1 (this is not working on a Unity 2020.3.6f1 build too)
Thank a lot

Please don’t multipost, this has already been answered in your other posts. Ensure to download the game as a tester from Google Play

So this post is a top result on google for “GPUL.HEC”, and I couldn’t find the related thread.

It’s simply propagating a google billing error that IAP cannot handle ( see com.unity.purchasing/Runtime/Stores/Android/GooglePlay/AAR/GooglePurchasesUpdatedHandler.cs at 4937336490521cfacb8b27e868eaa657baf8ab88 · needle-mirror/com.unity.purchasing · GitHub )

Unity IAP only handles 3 errors :
USER_CANCELED
BILLING_UNAVAILABLE
ITEM_ALREADY_OWNED

All other errors will be logged with GPUL.HEC - the possible unhandled billing errors are listed here : Handle BillingResult response codes  |  Google Play's billing system  |  Android Developers

So for example {M: GPUL.HEC} - Google BillingResponseCode = ItemUnavailable is the equivalent of ITEM_UNAVAILABLE enum from here Handle BillingResult response codes  |  Google Play's billing system  |  Android Developers

1 Like