{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/217","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/217/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/217/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/217","id":87711410,"number":217,"title":"How to display the price without store.refresh()","user":{"login":"Sanafan","id":8384797,"avatar_url":"https://avatars.githubusercontent.com/u/8384797?v=3","gravatar_id":"","url":"https://api.github.com/users/Sanafan","html_url":"https://github.com/Sanafan","followers_url":"https://api.github.com/users/Sanafan/followers","following_url":"https://api.github.com/users/Sanafan/following{/other_user}","gists_url":"https://api.github.com/users/Sanafan/gists{/gist_id}","starred_url":"https://api.github.com/users/Sanafan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sanafan/subscriptions","organizations_url":"https://api.github.com/users/Sanafan/orgs","repos_url":"https://api.github.com/users/Sanafan/repos","events_url":"https://api.github.com/users/Sanafan/events{/privacy}","received_events_url":"https://api.github.com/users/Sanafan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-12T12:13:50Z","updated_at":"2015-06-12T13:04:49Z","closed_at":null,"body":"Hey Guys,\r\nwe have an Application in which we have some non consumeable products. We want to display the price for the user, but therefore we need store.refresh(). Apples Guidelines are clear: If you want to display the price, you have to take the price which comes from your request to the server. \r\n\r\nSo if i no implement store.refresh() it will prompt the user to sign in into his apple ID but this isn't a normal behaviour. \r\n\r\nIf i choose an application from the app store, which has InApp-Purchases, and i start the application for the first time, i don't have to log in to the the prices for the inApp-Purchases. \r\n\r\nSo... does anybody have an idea how to fix this or what would be the best workflow for that? I don't want the user to enter his password, only for the reason, that he's able to see our prices. \r\n\r\nAnd if i would need the user to login into his apple id, why do i retrieve title, description and price although i click cancel when the login window appears."},"comment":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/comments/111485082","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/217#issuecomment-111485082","issue_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/217","id":111485082,"user":{"login":"uareurapid","id":2683953,"avatar_url":"https://avatars.githubusercontent.com/u/2683953?v=3","gravatar_id":"","url":"https://api.github.com/users/uareurapid","html_url":"https://github.com/uareurapid","followers_url":"https://api.github.com/users/uareurapid/followers","following_url":"https://api.github.com/users/uareurapid/following{/other_user}","gists_url":"https://api.github.com/users/uareurapid/gists{/gist_id}","starred_url":"https://api.github.com/users/uareurapid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uareurapid/subscriptions","organizations_url":"https://api.github.com/users/uareurapid/orgs","repos_url":"https://api.github.com/users/uareurapid/repos","events_url":"https://api.github.com/users/uareurapid/events{/privacy}","received_events_url":"https://api.github.com/users/uareurapid/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T13:04:49Z","updated_at":"2015-06-12T13:04:49Z","body":"You need to connect to the Apple server to get the product details, period. \r\nAn app downloaded from the store is different than testing In-App purchases on sandbox.\r\nWhen you download an app from the app store, you´re already logged in, otherwise you couldn´t download it, so it will not ask your credentials again.\r\nNow, when testing In-App purchase on sandbox mode, things are a bit different and can be a bit tricky. There are some rules to follow:\r\n1 - Make sure you start logged out, got to settings->iTunes & app store and sign out of any account.\r\n2 - When prompted for credentials, use a sandbox testing account, do not use a real account or start mixing them, cause things tend to become even more confuse.\r\nThen purchase your products, \r\nif for some reason you need to restart the app, than you´ll need to repeat the steps \r\n\r\n\r\n"}}