{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/334","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/334/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/334/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/334","id":115692867,"number":334,"title":"IAP weird behavior and disability to restore old purchases.","user":{"login":"anonrig","id":1935246,"avatar_url":"https://avatars.githubusercontent.com/u/1935246?v=3","gravatar_id":"","url":"https://api.github.com/users/anonrig","html_url":"https://github.com/anonrig","followers_url":"https://api.github.com/users/anonrig/followers","following_url":"https://api.github.com/users/anonrig/following{/other_user}","gists_url":"https://api.github.com/users/anonrig/gists{/gist_id}","starred_url":"https://api.github.com/users/anonrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anonrig/subscriptions","organizations_url":"https://api.github.com/users/anonrig/orgs","repos_url":"https://api.github.com/users/anonrig/repos","events_url":"https://api.github.com/users/anonrig/events{/privacy}","received_events_url":"https://api.github.com/users/anonrig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-07T21:15:40Z","updated_at":"2015-11-10T14:18:53Z","closed_at":null,"body":"Hello,\r\n\r\nI have 3 different non-renewable subscriptions in my itunes connect account. I've added my gist to https://gist.github.com/anonrig/cfdf88ad3a1d2f7d3b46\r\n\r\nI have 3 questions and problems to ask the developers of this plugin.\r\n\r\n1) Everytime the application is loaded, it prompts for my iTunes Store account email&password. (It shouldn't have done it unless I buy the product)\r\n\r\n2) Calling `inAppPurchase.restore()` only calls `onRestoreCompleted` method and doesn't call any other method.\r\n\r\n3) Even though it says that it takes 5 minutes for a monthly subscription in sandbox to expire, it doesn't expire at all. Therefore I tried validator method and nothing have changed. Any suggestions?\r\n\r\n4) If a subscription is still active and you try to buy it again it says `It will be restored free` but there isn't any recognition in plugin side regarding which function will be called upon that"},"comment":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/comments/155432652","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/334#issuecomment-155432652","issue_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/334","id":155432652,"user":{"login":"d3orn","id":411479,"avatar_url":"https://avatars.githubusercontent.com/u/411479?v=3","gravatar_id":"","url":"https://api.github.com/users/d3orn","html_url":"https://github.com/d3orn","followers_url":"https://api.github.com/users/d3orn/followers","following_url":"https://api.github.com/users/d3orn/following{/other_user}","gists_url":"https://api.github.com/users/d3orn/gists{/gist_id}","starred_url":"https://api.github.com/users/d3orn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3orn/subscriptions","organizations_url":"https://api.github.com/users/d3orn/orgs","repos_url":"https://api.github.com/users/d3orn/repos","events_url":"https://api.github.com/users/d3orn/events{/privacy}","received_events_url":"https://api.github.com/users/d3orn/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T14:18:53Z","updated_at":"2015-11-10T14:18:53Z","body":"can you try onRestore: function(transactionId, productId, transactionReceipt){} (same for onPurchase)"}}