{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/375","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/375/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/375/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/375","id":127013531,"number":375,"title":"Unable to get title, price... on Android","user":{"login":"CyrilleGuimezanes","id":5911548,"avatar_url":"https://avatars.githubusercontent.com/u/5911548?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrilleGuimezanes","html_url":"https://github.com/CyrilleGuimezanes","followers_url":"https://api.github.com/users/CyrilleGuimezanes/followers","following_url":"https://api.github.com/users/CyrilleGuimezanes/following{/other_user}","gists_url":"https://api.github.com/users/CyrilleGuimezanes/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrilleGuimezanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrilleGuimezanes/subscriptions","organizations_url":"https://api.github.com/users/CyrilleGuimezanes/orgs","repos_url":"https://api.github.com/users/CyrilleGuimezanes/repos","events_url":"https://api.github.com/users/CyrilleGuimezanes/events{/privacy}","received_events_url":"https://api.github.com/users/CyrilleGuimezanes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-16T09:44:45Z","updated_at":"2016-01-20T08:18:37Z","closed_at":null,"body":"Hello,\r\n\r\nIn my app, created with Cordova, I would like to do IAP and show prices with local currency.\r\n\r\nOn the documentation I have:\r\n\r\n> When you perform the initial refresh() call, the store's server will be contacted to load informations > about the registered products: human readable title and description, price, etc.\r\n> But when I execute the following code I have the product but the price is set to \"null\"\r\n\r\nAnd I wrote:\r\n\r\n```\r\nstore.verbosity = store.DEBUG;\r\nstore.ready(function() {\r\n      store.refresh();\r\n      alert(\"Object:\"+ store.get(PREMIUM_PACK_ID));\r\n      alert(\"Price:\"+ store.get(PREMIUM_PACK_ID).price);\r\n });\r\nfor (var i = 0; i < this.products.length; i++){\r\n      var params = this.products[i];\r\n      store.register({\r\n         id:    params.id,\r\n         alias: params.label,\r\n         type:  params.type || store.CONSUMABLE\r\n      });\r\n}\r\nstore.refresh();\r\n```\r\n\r\n\r\n**Some informations:**\r\n\r\n- CLI 5.2\r\n- Android 5\r\n- App in closed Beta-test mode\r\n- PREMIUM_PACK_ID === product ID on store\r\n- Refresh & ready well executed\r\n- Tried with one or two refresh...\r\n- Does anyone success to get the IAP prices with this plugin?\r\n\r\nDid I miss something?\r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/comments/173125589","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/375#issuecomment-173125589","issue_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/375","id":173125589,"user":{"login":"CyrilleGuimezanes","id":5911548,"avatar_url":"https://avatars.githubusercontent.com/u/5911548?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrilleGuimezanes","html_url":"https://github.com/CyrilleGuimezanes","followers_url":"https://api.github.com/users/CyrilleGuimezanes/followers","following_url":"https://api.github.com/users/CyrilleGuimezanes/following{/other_user}","gists_url":"https://api.github.com/users/CyrilleGuimezanes/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrilleGuimezanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrilleGuimezanes/subscriptions","organizations_url":"https://api.github.com/users/CyrilleGuimezanes/orgs","repos_url":"https://api.github.com/users/CyrilleGuimezanes/repos","events_url":"https://api.github.com/users/CyrilleGuimezanes/events{/privacy}","received_events_url":"https://api.github.com/users/CyrilleGuimezanes/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T08:18:37Z","updated_at":"2016-01-20T08:18:37Z","body":"No luck :(\r\n\r\nAny idea @j3k0 ?"}}