public string trackPurchase(string uniqueID, double localizedPrice, string isoCurrencyCode)
        {
            /* uniqueID = receipt for android */
            AMRUtil.Log("ADMOST trackPurchase AMRInitilize called;");
            string[] toReturnArray = new string[3];
            toReturnArray[0] = uniqueID;
            toReturnArray[1] = localizedPrice + "";
            toReturnArray[2] = isoCurrencyCode;

            AMRUtil.Log("<AMRSDK> receipt =" + uniqueID + "localizedPriceString = " + localizedPrice + "isoCurrencyCode = " + isoCurrencyCode);

            return(config.Call <string>("trackPurchase", new object[2] {
                toReturnArray, trackPurchaseListener
            }));
        }
        public string trackPurchaseForAmazon(string userId, string receiptId, double localizedPrice, string marketPlace, string isoCurrencyCode)
        {
            /* uniqueID = receipt for android */
            string[] toReturnArray = new string[6];
            toReturnArray[0] = userId;
            toReturnArray[1] = receiptId;
            toReturnArray[2] = localizedPrice + "";
            toReturnArray[3] = marketPlace;
            toReturnArray[4] = isoCurrencyCode;
            toReturnArray[5] = "0"; // isDebug default false for now

            AMRUtil.Log("<AMRSDK> receipt =" + receiptId + "localizedPriceString = " + localizedPrice + "marketPlace = " + marketPlace + "userId = " + userId + " isoCurrencyCode:" + isoCurrencyCode);

            return(config.Call <string>("trackPurchaseForAmazon", new object[2] {
                toReturnArray, trackPurchaseListener
            }));
        }
Пример #3
0
 void onAdClosed(string err)
 {
     AMRUtil.Log("<AMRSDK> onAdClosed from android");
     delegateObj.didDismissOfferWall();
 }