// Returns a list of all the transactions that occured on this device. They are stored in the Document directory. public static List <StoreKitTransaction> getAllSavedTransactions() { List <StoreKitTransaction> transactionList = new List <StoreKitTransaction>(); if (Application.platform == RuntimePlatform.IPhonePlayer) { // Grab the transactions and parse them out string allTransactions = _storeKitGetAllSavedTransactions(); // parse out the products string[] transactionParts = allTransactions.Split(new string[] { "||||" }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < transactionParts.Length; i++) { transactionList.Add(StoreKitTransaction.transactionFromString(transactionParts[i])); } } return(transactionList); }