public void purchase(string item, string developerPayload)
        {
            if (unknownAmazonProducts.Contains(item))
            {
                callback.logError(UnibillError.GOOGLEPLAY_ATTEMPTING_TO_PURCHASE_PRODUCT_NOT_RETURNED_BY_GOOGLEPLAY, item);
                callback.onPurchaseFailedEvent(item);
                return;
            }

            var args = new Dictionary <string, object>();

            args ["productId"]        = item;
            args ["developerPayload"] = developerPayload;

            rawInterface.purchase(MiniJSON.jsonEncode(args));
        }
예제 #2
0
 public static string toJson(this Dictionary <string, string> obj)
 {
     return(MiniJSON.jsonEncode(obj));
 }