{"action":"created","issue":{"url":"https://api.github.com/repos/dooboolab/react-native-iap/issues/126","repository_url":"https://api.github.com/repos/dooboolab/react-native-iap","labels_url":"https://api.github.com/repos/dooboolab/react-native-iap/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/dooboolab/react-native-iap/issues/126/comments","events_url":"https://api.github.com/repos/dooboolab/react-native-iap/issues/126/events","html_url":"https://github.com/dooboolab/react-native-iap/issues/126","id":314214091,"number":126,"title":"Doesn't let rebuy Android item on test account","user":{"login":"ilyakar","id":1760709,"avatar_url":"https://avatars3.githubusercontent.com/u/1760709?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyakar","html_url":"https://github.com/ilyakar","followers_url":"https://api.github.com/users/ilyakar/followers","following_url":"https://api.github.com/users/ilyakar/following{/other_user}","gists_url":"https://api.github.com/users/ilyakar/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyakar/subscriptions","organizations_url":"https://api.github.com/users/ilyakar/orgs","repos_url":"https://api.github.com/users/ilyakar/repos","events_url":"https://api.github.com/users/ilyakar/events{/privacy}","received_events_url":"https://api.github.com/users/ilyakar/received_events","type":"User","site_admin":false},"labels":[{"id":726998357,"url":"https://api.github.com/repos/dooboolab/react-native-iap/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-13T18:51:10Z","updated_at":"2018-04-16T15:04:16Z","closed_at":null,"author_association":"NONE","body":"### Version of react-native-iap\r\n0.3.10\r\n\r\n### Platforms you faced the error (IOS or Android or both?)\r\nAndroid\r\n\r\n### Expected behavior\r\nShould be able to rebuy an item as many times as I need since I'm just testing\r\n\r\n### Actual behavior\r\nReturns\r\n```\r\nError: You already own this item.\r\n    at createErrorFromErrorData (59522b9c-ca17-4e00-9e00-05cc989b1199:2016)\r\n    at 59522b9c-ca17-4e00-9e00-05cc989b1199:1968\r\n    at MessageQueue.__invokeCallback (59522b9c-ca17-4e00-9e00-05cc989b1199:2410)\r\n    at 59522b9c-ca17-4e00-9e00-05cc989b1199:2155\r\n    at MessageQueue.__guardSafe (59522b9c-ca17-4e00-9e00-05cc989b1199:2323)\r\n    at MessageQueue.invokeCallbackAndReturnFlushedQueue (59522b9c-ca17-4e00-9e00-05cc989b1199:2154)\r\n    at t (RNDebuggerWorker.js:1)\r\n```\r\n\r\n### Steps to reprodue the behabior\r\nBuy an item more than once using a test account"},"comment":{"url":"https://api.github.com/repos/dooboolab/react-native-iap/issues/comments/381635223","html_url":"https://github.com/dooboolab/react-native-iap/issues/126#issuecomment-381635223","issue_url":"https://api.github.com/repos/dooboolab/react-native-iap/issues/126","id":381635223,"user":{"login":"dooboolab","id":27461460,"avatar_url":"https://avatars0.githubusercontent.com/u/27461460?v=4","gravatar_id":"","url":"https://api.github.com/users/dooboolab","html_url":"https://github.com/dooboolab","followers_url":"https://api.github.com/users/dooboolab/followers","following_url":"https://api.github.com/users/dooboolab/following{/other_user}","gists_url":"https://api.github.com/users/dooboolab/gists{/gist_id}","starred_url":"https://api.github.com/users/dooboolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dooboolab/subscriptions","organizations_url":"https://api.github.com/users/dooboolab/orgs","repos_url":"https://api.github.com/users/dooboolab/repos","events_url":"https://api.github.com/users/dooboolab/events{/privacy}","received_events_url":"https://api.github.com/users/dooboolab/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T15:04:16Z","updated_at":"2018-04-16T15:04:16Z","author_association":"OWNER","body":"@ilyakar I've got feedback from my friend developer and he also faced the same problem. Therefore, I came up with solution to use `refreshItems` method that only occurs in `android`. You can use this in `react-native-iap@0.3.13`. Try using it after `prepare` method. My friend was facing this issue because he couldn't find the token of purchased product to consume. Therefore, this `method` is just for your ease if you don't care about the history of the purchases that relies in `playstore`. When you have your own backend collecting the purchase history, this will help you to solve the issue. I have to take a look on this one furthermore. Also, following the `readme` would help you. Thank you for your report!\r\n\r\nP.S. above method will work on `non-consumable` product also."}}
{"actor":{"display_login":"dooboolab"}}