Hey , Sure, here are the parts connected to GetLicense. As you can see I call Init in Awake(), then upon success I call GetLicense in InitStatusHandler() using LicenseChecker. I get the same error on the account that the app is on and a different account that shouldn't have a license. And I'm using the correct app id and app key because I have IAP working properly.
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); mListener = new Result(); Api.Init(InitStatusHandler, IAP_APP_ID); } private static void InitStatusHandler(int nResult) { instance.Log("InitStatusHandler: " + nResult); if (nResult != 0) { Viveport.Core.Logger.Log("Init setup error ..."); // Handle error Api.Shutdown(ShutdownStatusHandler); } Api.GetLicense(new LicenseChecker(), IAP_APP_ID, IAP_APP_KEY); } class LicenseChecker : Api.LicenseChecker { public override void OnSuccess(long issueTime, long expirationTime, int latestVersion, bool updateRequired) { instance.Log("[MyLicenseChecker] issueTime: " + issueTime); instance.Log("[MyLicenseChecker] expirationTime: " + expirationTime); instance.Log("[MyLicenseChecker] latestVersion: " + latestVersion); instance.Log("[MyLicenseChecker] updateRequired: " + updateRequired); // Do more things } public override void OnFailure(int errorCode, string errorMessage) { instance.Log("[MyLicenseChecker] errorCode: " + errorCode); instance.Log("[MyLicenseChecker] errorMessage: " + errorMessage); //Application.Quit(); } }