UNITY IAP接入(摘自杨树叶的简书)
原文地址:https://www.jianshu.com/p/07fa96ebc9c7
接入Unity自带IAP时,按照官方文档一步步import Unity purchase包。依然会发现两个错误:
- The name `StandardPurchasingModule' does not exist in the current context。
- The type or namespace name `IAppleExtensions' could not be found. Are you missing an assembly reference?
解决办法是:Unity目录下 Assets ->Import Package ->Custom Package,选择Assets/Plugins/UnityPurchasing目录下的UnityChannel.unitypackage和UnityIAP.unitypackage。问题解决。