UnityRef is currently in early development. Some features may be incomplete and/or not functioning.

UNITYREF

Your Pit Stop For Solving ANYTHING in Unity

assets

IAP Retrieve Products Failed Error

Under Audit

mobile development

Unity 2019.4.x - Unity 2020.3.x

Published 10 days ago

The IAP button works in the editor but fails in a published build, returning the "Retrieve Products failed, and could not retrieve any products" error, despite product IDs matching.

Issue

 The OnProductsFetched event fails to trigger in a published build, although a fake-store purchase is successfully initiated in the editor using IAP v5.2. The system returns the error "Retrieve Products failed, and could not retrieve any products." This issue persists even when the product ID (buygame) is confirmed to match between your IAP configuration and the relevant app store product ID. The OnProductsFetchFailed callback is invoked with the Retrieve Products failed reason.

Experimental Fixes
  • Ensure your UnityPurchasing Product IDs are correctly configured in the IAP Catalog and match exactly with your chosen app store’s developer console.
  • Verify that your store listing is published (e.g., Google Play internal test track, open/closed test track) and that the IAP products themselves are active and published.
  • Confirm that your app has the necessary Billing permission declared in its Android Manifest for Google Play or is correctly set up for iOS In-App Purchase capabilities.

Editor's Note:

The above fixes have not been verified by our audit team yet. They are provided exclusively for your own technical research. We recommend creating a backup of your project before proceeding with any attempts. Utilize at your own discretion!

Related Posts Haven't quite found a solution to your problem? We think these posts might help you.

Content inspired by a Unity discussion post.