{"action":"created","issue":{"url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2/issues/6","repository_url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2","labels_url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2/issues/6/comments","events_url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2/issues/6/events","html_url":"https://github.com/stone-pagamentos/sdk-ios-v2/issues/6","id":184050296,"number":6,"title":"Mensagens de notificação","user":{"login":"gusmelki","id":11415463,"avatar_url":"https://avatars.githubusercontent.com/u/11415463?v=3","gravatar_id":"","url":"https://api.github.com/users/gusmelki","html_url":"https://github.com/gusmelki","followers_url":"https://api.github.com/users/gusmelki/followers","following_url":"https://api.github.com/users/gusmelki/following{/other_user}","gists_url":"https://api.github.com/users/gusmelki/gists{/gist_id}","starred_url":"https://api.github.com/users/gusmelki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gusmelki/subscriptions","organizations_url":"https://api.github.com/users/gusmelki/orgs","repos_url":"https://api.github.com/users/gusmelki/repos","events_url":"https://api.github.com/users/gusmelki/events{/privacy}","received_events_url":"https://api.github.com/users/gusmelki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-19T19:18:05Z","updated_at":"2016-10-20T17:50:07Z","closed_at":null,"body":"Olá Amigos, 🖖🏻\r\n\r\nNesta nova versão do SDK, vocês implementaram a possibilidade de recebermos as mensagens exibidas na tela do pinpad, através do NSNotificationCenter. \r\n\r\nSegundo a documentação do sdk :   \"// o SDK provê o define `PINPAD_MESSAGE` que possui o nome que a notificação deverá ter\"\r\n\r\nPorem ao implementar não é possível identificar o `PINPAD_MESSAGE`. Procurei na demo de vocês, não achei um exemplo implementado lá.\r\n\r\nSegue o trecho de código em swift:\r\n\r\n```swift\r\nNSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(MoipMpos.handleNotification(_:)), name:\"PINPAD_MESSAGE\", object: nil)\r\n        \r\n        let stoneTransactionFactory:StoneTransactionFactory = StoneTransactionFactory()\r\n        let stoneTransaction:STNTransactionModel! = stoneTransactionFactory.build(payment, mposPayment: mposPayment)\r\n        \r\n        STNTransactionProvider.sendTransaction(stoneTransaction!, withBlock: { (success, error) in\r\n          if success {\r\n           ...\r\n          } else {\r\n            \r\n         ....\r\n        })\r\n  }\r\n\r\n  func handleNotification(notification: NSNotification){\r\n    print(notification)\r\n  }\r\n```\r\n\r\nExiste alguma divergência dependendo o modelo da máquina ou algo nesse sentido?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2/issues/comments/255178240","html_url":"https://github.com/stone-pagamentos/sdk-ios-v2/issues/6#issuecomment-255178240","issue_url":"https://api.github.com/repos/stone-pagamentos/sdk-ios-v2/issues/6","id":255178240,"user":{"login":"jgabrielfreitas","id":7410639,"avatar_url":"https://avatars.githubusercontent.com/u/7410639?v=3","gravatar_id":"","url":"https://api.github.com/users/jgabrielfreitas","html_url":"https://github.com/jgabrielfreitas","followers_url":"https://api.github.com/users/jgabrielfreitas/followers","following_url":"https://api.github.com/users/jgabrielfreitas/following{/other_user}","gists_url":"https://api.github.com/users/jgabrielfreitas/gists{/gist_id}","starred_url":"https://api.github.com/users/jgabrielfreitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgabrielfreitas/subscriptions","organizations_url":"https://api.github.com/users/jgabrielfreitas/orgs","repos_url":"https://api.github.com/users/jgabrielfreitas/repos","events_url":"https://api.github.com/users/jgabrielfreitas/events{/privacy}","received_events_url":"https://api.github.com/users/jgabrielfreitas/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T17:50:07Z","updated_at":"2016-10-20T17:50:07Z","body":"Então @gusmelki , essas mensagens são coletadas do _pinpad_ quando ele nos retorna um comando chamado **NTM**, logo, nós não temos controle disso. \r\n\r\nNormalmente são enviados comandos blocantes (comandos que impedem o _pinpad_ de receber outro comando até que haja uma resposta)."}}
{"actor":{"display_login":"jgabrielfreitas"}}