private static void HandleOnVerificationComplete(IOSStoreKitVerificationResponse res) { if (res.status != 0) { VerificationFailed(); } }
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); }
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); }
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); }
//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(); } } } }
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); }