{"action":"created","issue":{"url":"https://api.github.com/repos/onepf/OpenIAB-Unity-Plugin/issues/45","labels_url":"https://api.github.com/repos/onepf/OpenIAB-Unity-Plugin/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/onepf/OpenIAB-Unity-Plugin/issues/45/comments","events_url":"https://api.github.com/repos/onepf/OpenIAB-Unity-Plugin/issues/45/events","html_url":"https://github.com/onepf/OpenIAB-Unity-Plugin/issues/45","id":55854961,"number":45,"title":"OpenIAB not working on IOS.","user":{"login":"minhit1805","id":9863542,"avatar_url":"https://avatars.githubusercontent.com/u/9863542?v=3","gravatar_id":"","url":"https://api.github.com/users/minhit1805","html_url":"https://github.com/minhit1805","followers_url":"https://api.github.com/users/minhit1805/followers","following_url":"https://api.github.com/users/minhit1805/following{/other_user}","gists_url":"https://api.github.com/users/minhit1805/gists{/gist_id}","starred_url":"https://api.github.com/users/minhit1805/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhit1805/subscriptions","organizations_url":"https://api.github.com/users/minhit1805/orgs","repos_url":"https://api.github.com/users/minhit1805/repos","events_url":"https://api.github.com/users/minhit1805/events{/privacy}","received_events_url":"https://api.github.com/users/minhit1805/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-29T04:28:07Z","updated_at":"2015-01-29T12:55:26Z","closed_at":null,"body":"After create items from itunesconnect.apple.com\r\n![shopitemserver](https://cloud.githubusercontent.com/assets/9863542/5952274/1c6d1622-a7a6-11e4-9e60-a26df7970651.png)\r\nIn my Unity project i call:\r\nconst string noads_item2 = \"2noads_item\";\r\nconst string x2coin_item_stt_1 = \"2x2coin_item_stt_2\";\r\nStart()\r\n{\r\n\tOpenIAB.mapSku(noads_item2, OpenIAB_iOS.STORE, noads_item2);\r\n\tOpenIAB.mapSku (x2coin_item_stt_1, OpenIAB_iOS.STORE, x2coin_item_stt_1);\r\n}\r\nVoid OnMouseDown()\r\n{\r\n    if(gameobject.name==\"removead_btn\")\r\n    {\r\n    OpenIAB.purchaseProduct (noads_item2);\r\n    }\r\n    else if(gameobject.name==\"x2coin_btn\")\r\n    {\r\n    OpenIAB.purchaseProduct (x2coin_item_stt_1);\r\n    }\r\n}\r\nthen i build this example project by xcode 6(add Storekit framework) to ipa and then install to my iphone device but still get no effect, what i was wrong here? *sorry for my bad english if something wrong*"},"comment":{"url":"https://api.github.com/repos/onepf/OpenIAB-Unity-Plugin/issues/comments/72019366","html_url":"https://github.com/onepf/OpenIAB-Unity-Plugin/issues/45#issuecomment-72019366","issue_url":"https://api.github.com/repos/onepf/OpenIAB-Unity-Plugin/issues/45","id":72019366,"user":{"login":"minhit1805","id":9863542,"avatar_url":"https://avatars.githubusercontent.com/u/9863542?v=3","gravatar_id":"","url":"https://api.github.com/users/minhit1805","html_url":"https://github.com/minhit1805","followers_url":"https://api.github.com/users/minhit1805/followers","following_url":"https://api.github.com/users/minhit1805/following{/other_user}","gists_url":"https://api.github.com/users/minhit1805/gists{/gist_id}","starred_url":"https://api.github.com/users/minhit1805/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhit1805/subscriptions","organizations_url":"https://api.github.com/users/minhit1805/orgs","repos_url":"https://api.github.com/users/minhit1805/repos","events_url":"https://api.github.com/users/minhit1805/events{/privacy}","received_events_url":"https://api.github.com/users/minhit1805/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T12:55:26Z","updated_at":"2015-01-29T12:55:26Z","body":"sure, this code working good on android.\r\n   private void purchaseSucceededEvent(Purchase purchase)\r\n\t{\r\n\t\tDebug.Log(\"purchaseSucceededEvent: \" + purchase);\r\n\t\t_label = \"PURCHASED:\" + purchase.ToString();\r\n\t\tswitch (purchase.Sku) { \r\n\t\t\t// control product and price here;\r\n\t\tcase noads_item: \r\n\t\t{\r\n\t\t\tGameObject endIAP;\r\n\t\t\tPlayerPrefs.SetInt(\"isnoadsdata\",1);\r\n\t\t}\r\n\t\t\tbreak;\r\n\t\tcase x2coin_item_stt_1: \r\n\t\t\tPlayerPrefs.SetInt(\"isdoublegold\",1);\r\n\t\t\tbreak; \r\n\t\tdefault:\r\n\t\t\tDebug.LogWarning (\"UnknownSKU: \" + purchase);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\tprivate void purchaseFailedEvent(int errorCode, string errorMessage)\r\n\t{\r\n\t\tDebug.Log(\"purchaseFailedEvent: \" + errorMessage);\r\n\t\t_label = \"Purchase Failed: \" + errorMessage;\r\n\t}\r\n\tprivate void consumePurchaseSucceededEvent(Purchase purchase)\r\n\t{\r\n\t\tDebug.Log(\"consumePurchaseSucceededEvent: \" + purchase);\r\n\t\t_label = \"CONSUMED: \" + purchase.ToString();\r\n\t}\r\n\tprivate void consumePurchaseFailedEvent(string error)\r\n\t{\r\n\t\tDebug.Log(\"consumePurchaseFailedEvent: \" + error);\r\n\t\t_label = \"Consume Failed: \" + error;\r\n\t}\r\n\tprivate void OnEnable()\r\n\t{\r\n\t\t// Listen to all events for illustration purposes\r\n\t\tOpenIABEventManager.billingSupportedEvent += billingSupportedEvent;\r\n\t\tOpenIABEventManager.billingNotSupportedEvent += billingNotSupportedEvent;\r\n\t\tOpenIABEventManager.queryInventorySucceededEvent += queryInventorySucceededEvent;\r\n\t\tOpenIABEventManager.queryInventoryFailedEvent += queryInventoryFailedEvent;\r\n\t\tOpenIABEventManager.purchaseSucceededEvent += purchaseSucceededEvent;\r\n\t\tOpenIABEventManager.purchaseFailedEvent += purchaseFailedEvent;\r\n\t\tOpenIABEventManager.consumePurchaseSucceededEvent += consumePurchaseSucceededEvent;\r\n\t\tOpenIABEventManager.consumePurchaseFailedEvent += consumePurchaseFailedEvent;\r\n\t}\r\n\tprivate void OnDisable()\r\n\t{\r\n\t\t// Remove all event handlers\r\n\t\tOpenIABEventManager.billingSupportedEvent -= billingSupportedEvent;\r\n\t\tOpenIABEventManager.billingNotSupportedEvent -= billingNotSupportedEvent;\r\n\t\tOpenIABEventManager.queryInventorySucceededEvent -= queryInventorySucceededEvent;\r\n\t\tOpenIABEventManager.queryInventoryFailedEvent -= queryInventoryFailedEvent;\r\n\t\tOpenIABEventManager.purchaseSucceededEvent -= purchaseSucceededEvent;\r\n\t\tOpenIABEventManager.purchaseFailedEvent -= purchaseFailedEvent;\r\n\t\tOpenIABEventManager.consumePurchaseSucceededEvent -= consumePurchaseSucceededEvent;\r\n\t\tOpenIABEventManager.consumePurchaseFailedEvent -= consumePurchaseFailedEvent;\r\n\t}\t\r\n\tprivate void billingSupportedEvent()\r\n\t{\r\n\t\t//_isInitialized = true;\r\n\t\tDebug.Log(\"billingSupportedEvent\");\r\n\t}\r\n\tprivate void billingNotSupportedEvent(string error)\r\n\t{\r\n\t\tDebug.Log(\"billingNotSupportedEvent: \" + error);\r\n\t}\r\n\tprivate void queryInventorySucceededEvent(Inventory inventory)\r\n\t{\r\n\t\tDebug.Log(\"queryInventorySucceededEvent: \" + inventory);\r\n\t\tif (inventory != null)\r\n\t\t\t_label = inventory.ToString();\r\n\t}\r\n\tprivate void queryInventoryFailedEvent(string error)\r\n\t{\r\n\t\tDebug.Log(\"queryInventoryFailedEvent: \" + error);\r\n\t\t_label = error;\r\n\t}"}}