2021.2.0b13 IAP Error

Hi,

I updated to 2021.2.0b13 have this error:

Assets/Scripts/IAPManager.cs(89,28): error CS1061: ‘IGooglePlayStoreExtensions’ does not contain a definition for ‘SetDeferredPurchaseListener’ and no accessible extension method ‘SetDeferredPurchaseListener’ accepting a first argument of type ‘IGooglePlayStoreExtensions’ could be found (are you missing a using directive or an assembly reference?)

I then updated to the latest version (4.0.3) of IAP in the package manager but the error persists.

What needs updated to fix this?

Thanks!

This should help https://discussions.unity.com/t/850100/10

1 Like

I solved the problem you used old version so install 3.2.2 in unity package manager.

No, you would not want to install an old version of IAP, we have fixed many issues since then. You will want to use IAP 4.1.3 (or higher). My last post shows the correct and updated syntax.