{"action":"closed","issue":{"url":"https://api.github.com/repos/eymengunay/php-passbook/issues/28","labels_url":"https://api.github.com/repos/eymengunay/php-passbook/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/eymengunay/php-passbook/issues/28/comments","events_url":"https://api.github.com/repos/eymengunay/php-passbook/issues/28/events","html_url":"https://github.com/eymengunay/php-passbook/issues/28","id":53410852,"number":28,"title":"Associated Store Identifiers","user":{"login":"FuLLn00b","id":7396139,"avatar_url":"https://avatars.githubusercontent.com/u/7396139?v=3","gravatar_id":"","url":"https://api.github.com/users/FuLLn00b","html_url":"https://github.com/FuLLn00b","followers_url":"https://api.github.com/users/FuLLn00b/followers","following_url":"https://api.github.com/users/FuLLn00b/following{/other_user}","gists_url":"https://api.github.com/users/FuLLn00b/gists{/gist_id}","starred_url":"https://api.github.com/users/FuLLn00b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FuLLn00b/subscriptions","organizations_url":"https://api.github.com/users/FuLLn00b/orgs","repos_url":"https://api.github.com/users/FuLLn00b/repos","events_url":"https://api.github.com/users/FuLLn00b/events{/privacy}","received_events_url":"https://api.github.com/users/FuLLn00b/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eymengunay/php-passbook/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T16:02:34Z","updated_at":"2015-11-09T19:51:24Z","closed_at":"2015-11-09T19:51:24Z","body":"I have not managed to use correctly the 'associatedStoreIdentifiers' attribute of the Pass class with current version of the code.\r\nI used this line of code: \r\n$pass->addAssociatedStoreIdentifier(585027354);\r\nThe number 85027354 is the adam id of Google Maps.\r\nThing is that this attribute is not in the list of properties in the toArray() function of the same class, so when the pkpass is created, the associatedStoreIdentifers aren't in the JSON of the pass.\r\n\r\nI added two lines in the toArray() function to make it work: after the foreach, i added:\r\nif(count($this->associatedStoreIdentifiers) != 0)\r\n            $array['associatedStoreIdentifiers'] = $this->associatedStoreIdentifiers;\r\nAnd now it works perfectly, i see the GoogleMaps link at the back of the pass.\r\n\r\nNot sure if i'm doing it wrong or if there is an issue."}}