Beispiel #1
0
        /// <summary>
        /// Handles the <c>onMarketRefund</c> event, which is fired when a Market refund has been issued.
        /// </summary>
        /// <param name="message">Message that contains information about the market refund that has occurred.</param>
        public void onMarketRefund(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketRefund:" + message);

            PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(message);

            StoreEvents.OnMarketPurchaseStarted(pvi);
        }
Beispiel #2
0
        public static void onMarketPurchaseStarted(MarketPurchaseStartedEvent _Event)
        {
            SoomlaWpStore.domain.PurchasableVirtualItem purchasableVirtualItem = _Event.GetPurchasableVirtualItem();
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketPurchaseStarted: " + purchasableVirtualItem.getItemId());

            PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(purchasableVirtualItem.getItemId());

            StoreEvents.OnMarketPurchaseStarted(pvi);
        }
Beispiel #3
0
        /// <summary>
        /// Handles the <c>onMarketPurchaseStarted</c> event, which is fired when a Market purchase has started.
        /// </summary>
        /// <param name="message">Message that contains information about the maret purchase that is being
        /// started.</param>
        public void onMarketPurchaseStarted(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onMarketPurchaseStarted: " + message);

            var eventJSON = new JSONObject(message);

            PurchasableVirtualItem pvi = (PurchasableVirtualItem)StoreInfo.GetItemByItemId(eventJSON["itemId"].str);

            StoreEvents.OnMarketPurchaseStarted(pvi);
        }