private void OnPurchaseSucceeded(string sku)
 {
     if (purchaseSucceededEvent != null)
     {
         purchaseSucceededEvent(Purchase.CreateFromSku(OpenIAB_iOS.StoreSku2Sku(sku)));
     }
 }
Exemple #2
0
 private void OnPurchaseSucceeded(string sku)
 {
     if (purchaseSucceededEvent != null)
     {
         // sku actually is a serialzied dictionary with 2 keys (sku & receipt);
         // make a new JSON object to easily parse these out.
         JSON json_obj = new JSON(sku);
         purchaseSucceededEvent(Purchase.CreateFromSku(OpenIAB_iOS.StoreSku2Sku(json_obj.ToString("sku")), json_obj.ToString("receipt")));
     }
 }
Exemple #3
0
        public Purchase(JSON json)
        {
            ItemType         = json.ToString("itemType");
            OrderId          = json.ToString("orderId");
            PackageName      = json.ToString("packageName");
            Sku              = json.ToString("sku");
            PurchaseTime     = json.ToLong("purchaseTime");
            PurchaseState    = json.ToInt("purchaseState");
            DeveloperPayload = json.ToString("developerPayload");
            Token            = json.ToString("token");
            OriginalJson     = json.ToString("originalJson");
            Signature        = json.ToString("signature");
            AppstoreName     = json.ToString("appstoreName");

            Sku = OpenIAB_iOS.StoreSku2Sku(Sku);
        }