{"action":"created","issue":{"url":"https://api.github.com/repos/onepf/OpenIAB/issues/461","labels_url":"https://api.github.com/repos/onepf/OpenIAB/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/onepf/OpenIAB/issues/461/comments","events_url":"https://api.github.com/repos/onepf/OpenIAB/issues/461/events","html_url":"https://github.com/onepf/OpenIAB/issues/461","id":60330720,"number":461,"title":"Canceled purchases, doesn't appears in inventory.GetAllPurchases() list","user":{"login":"dremecker","id":8208943,"avatar_url":"https://avatars.githubusercontent.com/u/8208943?v=3","gravatar_id":"","url":"https://api.github.com/users/dremecker","html_url":"https://github.com/dremecker","followers_url":"https://api.github.com/users/dremecker/followers","following_url":"https://api.github.com/users/dremecker/following{/other_user}","gists_url":"https://api.github.com/users/dremecker/gists{/gist_id}","starred_url":"https://api.github.com/users/dremecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dremecker/subscriptions","organizations_url":"https://api.github.com/users/dremecker/orgs","repos_url":"https://api.github.com/users/dremecker/repos","events_url":"https://api.github.com/users/dremecker/events{/privacy}","received_events_url":"https://api.github.com/users/dremecker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-09T11:35:03Z","updated_at":"2015-04-14T12:59:37Z","closed_at":null,"body":"Hello,\r\n\r\nI'm doing some test with google in app billing, and i've got an issue with canceled purchases. When i cancel a purchase, after a while, purchase doesn't appear in inventory.GetAllPurchases() list.\r\n\r\nI'm trying to catch purchase state (0/1/2) to determined if a purchased product have been refunded or canceled. Am I doing wrong ?\r\n\r\nFor this test, I'm using google test account which can test purchase with my app SKU.\r\n\r\nMy debug code (inside query inventory succeeded event) :\r\n\r\n\t\t\t/* DEBUG START */\r\n\r\n\t\t\tList<Purchase> pList = inventory.GetAllPurchases();\r\n\r\n\t\t\tforeach (Purchase p in pList) {\r\n\t\t\t\tDebug.Log(p.Sku + \" (\" + p.OrderId + \") : \" + p.PurchaseState);\r\n\t\t\t}\r\n\r\n\t\t\t/* DEBUG END */\r\n\r\nLog entry when it works (so, only when purchased) : \r\n03-09 11:54:40.421: I/Unity(7564): sku_premium (12999763169054705758.1388484591254215) : 0\r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/onepf/OpenIAB/issues/comments/92814125","html_url":"https://github.com/onepf/OpenIAB/issues/461#issuecomment-92814125","issue_url":"https://api.github.com/repos/onepf/OpenIAB/issues/461","id":92814125,"user":{"login":"makrana","id":4687313,"avatar_url":"https://avatars.githubusercontent.com/u/4687313?v=3","gravatar_id":"","url":"https://api.github.com/users/makrana","html_url":"https://github.com/makrana","followers_url":"https://api.github.com/users/makrana/followers","following_url":"https://api.github.com/users/makrana/following{/other_user}","gists_url":"https://api.github.com/users/makrana/gists{/gist_id}","starred_url":"https://api.github.com/users/makrana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makrana/subscriptions","organizations_url":"https://api.github.com/users/makrana/orgs","repos_url":"https://api.github.com/users/makrana/repos","events_url":"https://api.github.com/users/makrana/events{/privacy}","received_events_url":"https://api.github.com/users/makrana/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T12:59:37Z","updated_at":"2015-04-14T12:59:37Z","body":"Hello,\r\n\r\nI am also stuck in same issue. For me even if subscription is cancelled from Google play, I get purchased state as 0. And if I re-subscribe before 1st subscription ends, still I get the data of cancelled subscription and not for the new subscription."}}