I am trying to do a tutorial from unity (https://unity3d.com/learn/tutorials/topics/analytics/integrating-unity-iap-your-game?playlist=17123) and I copied the code from here. However, I keep getting an error saying: The name `StandardPurchasingModule' does not exist in the current context
I can't figure out why this keeps happening. This is line I am getting the error on
var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
It seem you need to install the Unity IAP by your own. Unity might skipped that step or you accidentally skipped it. who knows.. hahha
To fixed it, just go the folder 'UnityPurchasing' folder in 'Plugins' folder. Then double click on the package Unity IAP. Import all and the problem solved. If it does fix your problem just try Dong Nguyen solution.
I have same problem. I think this bug of unity. It not import all libarary we need, And I resolved. I create new unity project, enable Unity Purchasing, and then I copy folder Plugins/UnityPurchasing of new project to problem project.
You need install plugin after import Unity IAP. Look where is installer.
P.S. If you have errors after install plugin, you need delete demo scene and demo scripts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With