示例#1
0
 private static void HandleOnVerificationComplete(IOSStoreKitVerificationResponse res)
 {
     if (res.status != 0)
     {
         VerificationFailed();
     }
 }
示例#2
0
    private static void onVerificationResponce(CEvent e)
    {
        IOSStoreKitVerificationResponse responce = e.data as IOSStoreKitVerificationResponse;

        IOSNativePopUpManager.showMessage("Verification", "Transaction verification status: " + responce.status.ToString());

        Debug.Log("ORIGINAL JSON ON: " + responce.originalJSON);
    }
示例#3
0
    public void onVerificationResult(string array)
    {
        string[] data;
        data = array.Split("|" [0]);

        IOSStoreKitVerificationResponse response = new IOSStoreKitVerificationResponse();

        response.status       = System.Convert.ToInt32(data[0]);
        response.originalJSON = data [1];
        response.receipt      = data [2];

        dispatch(VERIFICATION_RESPONSE, response);
    }
示例#4
0
    private void onVerificationResult(string array)
    {
        string[] data;
        data = array.Split("|" [0]);

        IOSStoreKitVerificationResponse response = new IOSStoreKitVerificationResponse();

        response.status            = System.Convert.ToInt32(data[0]);
        response.originalJSON      = data [1];
        response.receipt           = data [2];
        response.productIdentifier = lastPurchasedProduct;

        OnVerificationComplete(response);
    }
	static void HandleOnVerificationComplete (IOSStoreKitVerificationResponse response) {
		IOSNativePopUpManager.showMessage("Verification", "Transaction verification status: " + response.status.ToString());
		
		Debug.Log("ORIGINAL JSON: " + response.originalJSON);
	}
示例#6
0
    //static void HandleOnVerificationComplete (IOSStoreKitVerificationResponse response)
    void HandleOnVerificationComplete(IOSStoreKitVerificationResponse response)
    {
        //IOSNativePopUpManager.showMessage("Verification", "Transaction verification status: " + response.status.ToString());
        Debug.Log("ORIGINAL JSON: " + response.originalJSON);
        string ReceiptString = response.originalJSON.ToString();

        if (ReceiptString.Contains(ReceiptNo_AdsID) == false && ReceiptString.Contains(ReceiptPro_VersionID) == false)
        {
            // not a valid receipt
            Debug.Log("Invalid Receipt");
            UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds      = false;
            UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = false;
            UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
        }
        else
        {
            if (ReceiptString.Contains(ReceiptNo_AdsID) == true)
            {
                if (ReceiptString.Contains(ReceiptNo_AdsItem) == true)
                {
                    if (ReceiptString.Contains(ReceiptBid) == true)
                    {
                        // valid receipt
                        Debug.Log("Valid Receipt");
                        UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds = true;
                        UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                    }
                    else
                    {
                        // not a valid receipt
                        Debug.Log("Invalid Receipt");
                        UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds      = false;
                        UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = false;
                        UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                    }
                }
                else
                {
                    // not a valid receipt
                    Debug.Log("Invalid Receipt");
                    UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds      = false;
                    UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = false;
                    UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                }
            }
            else
            {
                if (ReceiptString.Contains(ReceiptPro_VersionID) == true)
                {
                    if (ReceiptString.Contains(ReceiptPro_VersionItem) == true)
                    {
                        if (ReceiptString.Contains(ReceiptBid) == true)
                        {
                            // valid receipt
                            Debug.Log("Valid Receipt");
                            UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = true;
                            UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                        }
                        else
                        {
                            // not a valid receipt
                            Debug.Log("Invalid Receipt");
                            UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds      = false;
                            UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = false;
                            UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                        }
                    }
                    else
                    {
                        // not a valid receipt
                        Debug.Log("Invalid Receipt");
                        UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds      = false;
                        UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = false;
                        UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                    }
                }
                else
                {
                    // not a valid receipt
                    Debug.Log("Invalid Receipt");
                    UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.NoAds      = false;
                    UserBlobManager.GetComponent <UserBlobManager>().UserSettingsData.ProVersion = false;
                    UserBlobManager.GetComponent <UserBlobManager>().SaveSettings();
                }
            }
        }
    }
示例#7
0
    static void HandleOnVerificationComplete(IOSStoreKitVerificationResponse response)
    {
        IOSNativePopUpManager.showMessage("Verification", "Transaction verification status: " + response.status.ToString());

        Debug.Log("ORIGINAL JSON: " + response.originalJSON);
    }
    public void onVerificationResult(string array)
    {
        string[] data;
        data = array.Split("|" [0]);

        IOSStoreKitVerificationResponse response = new IOSStoreKitVerificationResponse ();
        response.status = System.Convert.ToInt32(data[0]);
        response.originalJSON = data [1];
        response.receipt = data [2];

        dispatch (VERIFICATION_RESPONSE, response);
    }