{"action":"created","issue":{"url":"https://api.github.com/repos/csob/paymentgateway/issues/240","repository_url":"https://api.github.com/repos/csob/paymentgateway","labels_url":"https://api.github.com/repos/csob/paymentgateway/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/csob/paymentgateway/issues/240/comments","events_url":"https://api.github.com/repos/csob/paymentgateway/issues/240/events","html_url":"https://github.com/csob/paymentgateway/issues/240","id":192636963,"number":240,"title":"Jak udělat oneclick payment na button a dát customerovi info o stavu","user":{"login":"simPod","id":327717,"avatar_url":"https://avatars.githubusercontent.com/u/327717?v=3","gravatar_id":"","url":"https://api.github.com/users/simPod","html_url":"https://github.com/simPod","followers_url":"https://api.github.com/users/simPod/followers","following_url":"https://api.github.com/users/simPod/following{/other_user}","gists_url":"https://api.github.com/users/simPod/gists{/gist_id}","starred_url":"https://api.github.com/users/simPod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simPod/subscriptions","organizations_url":"https://api.github.com/users/simPod/orgs","repos_url":"https://api.github.com/users/simPod/repos","events_url":"https://api.github.com/users/simPod/events{/privacy}","received_events_url":"https://api.github.com/users/simPod/received_events","type":"User","site_admin":false},"labels":[{"id":200298452,"url":"https://api.github.com/repos/csob/paymentgateway/labels/question","name":"question","color":"eb6420","default":true}],"state":"closed","locked":false,"assignee":{"login":"dmarek","id":6949173,"avatar_url":"https://avatars.githubusercontent.com/u/6949173?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarek","html_url":"https://github.com/dmarek","followers_url":"https://api.github.com/users/dmarek/followers","following_url":"https://api.github.com/users/dmarek/following{/other_user}","gists_url":"https://api.github.com/users/dmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarek/subscriptions","organizations_url":"https://api.github.com/users/dmarek/orgs","repos_url":"https://api.github.com/users/dmarek/repos","events_url":"https://api.github.com/users/dmarek/events{/privacy}","received_events_url":"https://api.github.com/users/dmarek/received_events","type":"User","site_admin":false},"assignees":[{"login":"dmarek","id":6949173,"avatar_url":"https://avatars.githubusercontent.com/u/6949173?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarek","html_url":"https://github.com/dmarek","followers_url":"https://api.github.com/users/dmarek/followers","following_url":"https://api.github.com/users/dmarek/following{/other_user}","gists_url":"https://api.github.com/users/dmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarek/subscriptions","organizations_url":"https://api.github.com/users/dmarek/orgs","repos_url":"https://api.github.com/users/dmarek/repos","events_url":"https://api.github.com/users/dmarek/events{/privacy}","received_events_url":"https://api.github.com/users/dmarek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-30T18:02:49Z","updated_at":"2016-12-05T14:34:22Z","closed_at":"2016-12-05T14:34:22Z","body":"Zkouším oneclick payment na button. Po kliku na button se zavola `payment/oneclick/init` a `payment/oneclick/start`. Pak se hned volá `payment/status`, ale platba je ve stavu `pending (2)`. Trvá cca 1-2s, než spadne do stavu `confirmed (4)`. Chtěl bych ale po kliku na button vypsat, jestli byla platba úspěšná nebo ne. Jak tohle logicky řešit? Nechce se mi serveru říkat, aby čekal 2s, než zkontroluje status platby, ani dělat nějakou rekurzi, která bude pálit payment/status tak dlouho, dokud nedostanu odpověď. Už jste se s tím setkali?\r\n\r\nTo samé pak při nějakém automatickém placení, kdy na pozadí spouštím větší dávku oneclick plateb. Dávat tam nějaký wait je docela overkill, co slušně prodlouží běh scriptu. Se starou metodou `payment/recurrent` tento problém nebyl.\r\n\r\nDíky"},"comment":{"url":"https://api.github.com/repos/csob/paymentgateway/issues/comments/264868910","html_url":"https://github.com/csob/paymentgateway/issues/240#issuecomment-264868910","issue_url":"https://api.github.com/repos/csob/paymentgateway/issues/240","id":264868910,"user":{"login":"simPod","id":327717,"avatar_url":"https://avatars.githubusercontent.com/u/327717?v=3","gravatar_id":"","url":"https://api.github.com/users/simPod","html_url":"https://github.com/simPod","followers_url":"https://api.github.com/users/simPod/followers","following_url":"https://api.github.com/users/simPod/following{/other_user}","gists_url":"https://api.github.com/users/simPod/gists{/gist_id}","starred_url":"https://api.github.com/users/simPod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simPod/subscriptions","organizations_url":"https://api.github.com/users/simPod/orgs","repos_url":"https://api.github.com/users/simPod/repos","events_url":"https://api.github.com/users/simPod/events{/privacy}","received_events_url":"https://api.github.com/users/simPod/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T14:34:22Z","updated_at":"2016-12-05T14:34:22Z","body":"kk, děkuji"}}
{"actor":{"display_login":"simPod"}}