/** * Consumes the given purchase, or writes error message to log if unable to consume * * @param purchase purchase to be consumed */ private void consumeIfConsumable(PurchasableVirtualItem pvi) { SoomlaUtils.LogDebug(TAG, "TODO consumeIfConsumable"); try { if (!(pvi is NonConsumableItem)) { StoreManager.GetInstance().Consume(pvi.getItemId()); } } catch (Exception e) { SoomlaUtils.LogDebug(TAG, "Error while consuming: itemId: " + pvi.getItemId()); StoreEvents.GetInstance().PostUnexpectedStoreErrorEvent(e.Message); } }