public void GetNativeVerificationInfo(string stringVerificationInfo)
        {
            if (AdjustPurchase.instance == null)
            {
                Debug.Log(AdjustPurchase.errorMessage);
                return;
            }

            if (AdjustPurchase.verificationInfoCallback == null)
            {
                Debug.Log("adjust purchase: Attribution changed delegate was not set.");
                return;
            }

            ADJPVerificationInfo verificationInfo = new ADJPVerificationInfo(stringVerificationInfo);

            AdjustPurchase.verificationInfoCallback(verificationInfo);
        }
示例#2
0
            public void onVerificationFinished(AndroidJavaObject verificationInfo)
            {
                ADJPVerificationInfo purchaseVerificationInfo = new ADJPVerificationInfo();

                purchaseVerificationInfo.Message = verificationInfo.Get <string>(ADJPUtils.KeyMessage);

                AndroidJavaObject ajoStatusCode = verificationInfo.Get <AndroidJavaObject>(ADJPUtils.KeyStatusCode);

                purchaseVerificationInfo.StatusCode = ajoStatusCode.Call <int>("intValue");

                AndroidJavaObject ajoVerificationState  = verificationInfo.Get <AndroidJavaObject>(ADJPUtils.KeyVerificationState);
                string            verificationStateName = ajoVerificationState.Call <string>("name");

                purchaseVerificationInfo.VerificationState = ADJPUtils.StringToVerificationState(verificationStateName);

                if (callback != null)
                {
                    callback(purchaseVerificationInfo);
                }
            }