{"action":"created","issue":{"url":"https://api.github.com/repos/thelia/thelia/issues/1283","labels_url":"https://api.github.com/repos/thelia/thelia/issues/1283/labels{/name}","comments_url":"https://api.github.com/repos/thelia/thelia/issues/1283/comments","events_url":"https://api.github.com/repos/thelia/thelia/issues/1283/events","html_url":"https://github.com/thelia/thelia/pull/1283","id":62631686,"number":1283,"title":"Function isPaid","user":{"login":"zzuutt","id":7439945,"avatar_url":"https://avatars.githubusercontent.com/u/7439945?v=3","gravatar_id":"","url":"https://api.github.com/users/zzuutt","html_url":"https://github.com/zzuutt","followers_url":"https://api.github.com/users/zzuutt/followers","following_url":"https://api.github.com/users/zzuutt/following{/other_user}","gists_url":"https://api.github.com/users/zzuutt/gists{/gist_id}","starred_url":"https://api.github.com/users/zzuutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzuutt/subscriptions","organizations_url":"https://api.github.com/users/zzuutt/orgs","repos_url":"https://api.github.com/users/zzuutt/repos","events_url":"https://api.github.com/users/zzuutt/events{/privacy}","received_events_url":"https://api.github.com/users/zzuutt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T09:09:09Z","updated_at":"2015-03-18T09:32:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thelia/thelia/pulls/1283","html_url":"https://github.com/thelia/thelia/pull/1283","diff_url":"https://github.com/thelia/thelia/pull/1283.diff","patch_url":"https://github.com/thelia/thelia/pull/1283.patch"},"body":"Je pense que la fonction isPaid doit renvoyer true seulement si on est sur le status Payee.\r\nSinon cela engendre des erreurs au niveau des envoies de confirmation\r\nSi on laisse\r\n```\r\n    public function isPaid($exact = false)\r\n    {\r\n        return $this->hasStatusHelper(\r\n            $exact ?\r\n            OrderStatus::CODE_PAID :\r\n            [ OrderStatus::CODE_PAID, OrderStatus::CODE_PROCESSING, OrderStatus::CODE_SENT ]\r\n        );\r\n    }\r\n```\r\nl'email de confirmation de paiement est envoye pour les status PAID, PROCESSING, SENT\r\n\r\nil faut considerer que si le status est passe sur PROCESSING ou SENT, c'est que la commande a ete au depart sur PAID"},"comment":{"url":"https://api.github.com/repos/thelia/thelia/issues/comments/82847898","html_url":"https://github.com/thelia/thelia/pull/1283#issuecomment-82847898","issue_url":"https://api.github.com/repos/thelia/thelia/issues/1283","id":82847898,"user":{"login":"zzuutt","id":7439945,"avatar_url":"https://avatars.githubusercontent.com/u/7439945?v=3","gravatar_id":"","url":"https://api.github.com/users/zzuutt","html_url":"https://github.com/zzuutt","followers_url":"https://api.github.com/users/zzuutt/followers","following_url":"https://api.github.com/users/zzuutt/following{/other_user}","gists_url":"https://api.github.com/users/zzuutt/gists{/gist_id}","starred_url":"https://api.github.com/users/zzuutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzuutt/subscriptions","organizations_url":"https://api.github.com/users/zzuutt/orgs","repos_url":"https://api.github.com/users/zzuutt/repos","events_url":"https://api.github.com/users/zzuutt/events{/privacy}","received_events_url":"https://api.github.com/users/zzuutt/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T09:32:13Z","updated_at":"2015-03-18T09:32:13Z","body":"OK meme si je ne vois pas trop l'interet...\r\nil faut modifier dans chaque module de paiement ou autre\r\nisPaid()"}}