{"action":"created","issue":{"url":"https://api.github.com/repos/ePay/prestashop/issues/10","repository_url":"https://api.github.com/repos/ePay/prestashop","labels_url":"https://api.github.com/repos/ePay/prestashop/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ePay/prestashop/issues/10/comments","events_url":"https://api.github.com/repos/ePay/prestashop/issues/10/events","html_url":"https://github.com/ePay/prestashop/issues/10","id":174476326,"number":10,"title":"Problem med double ordre","user":{"login":"freaky250197","id":7721105,"avatar_url":"https://avatars.githubusercontent.com/u/7721105?v=3","gravatar_id":"","url":"https://api.github.com/users/freaky250197","html_url":"https://github.com/freaky250197","followers_url":"https://api.github.com/users/freaky250197/followers","following_url":"https://api.github.com/users/freaky250197/following{/other_user}","gists_url":"https://api.github.com/users/freaky250197/gists{/gist_id}","starred_url":"https://api.github.com/users/freaky250197/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freaky250197/subscriptions","organizations_url":"https://api.github.com/users/freaky250197/orgs","repos_url":"https://api.github.com/users/freaky250197/repos","events_url":"https://api.github.com/users/freaky250197/events{/privacy}","received_events_url":"https://api.github.com/users/freaky250197/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-01T09:24:01Z","updated_at":"2016-09-05T07:32:57Z","closed_at":null,"body":"Hej,\r\n\r\nVi har oplevet et problem hvor vi får 2 ordre på samme betaling.\r\n\r\nDa både epay og kunden kalder validation kan dette ske når de gør det i samme sekund, for så vil de komme forbi OrderExists(). da ordren ikke på da værende tidspunkt ikke findes, men dog er den også ved at blive oprettet af kunden/epay callback, afhængig af hvem der kalder først.\r\n\r\nVi har oplevet dette problem siden 07-07-2016."},"comment":{"url":"https://api.github.com/repos/ePay/prestashop/issues/comments/244677305","html_url":"https://github.com/ePay/prestashop/issues/10#issuecomment-244677305","issue_url":"https://api.github.com/repos/ePay/prestashop/issues/10","id":244677305,"user":{"login":"storkie","id":474118,"avatar_url":"https://avatars.githubusercontent.com/u/474118?v=3","gravatar_id":"","url":"https://api.github.com/users/storkie","html_url":"https://github.com/storkie","followers_url":"https://api.github.com/users/storkie/followers","following_url":"https://api.github.com/users/storkie/following{/other_user}","gists_url":"https://api.github.com/users/storkie/gists{/gist_id}","starred_url":"https://api.github.com/users/storkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storkie/subscriptions","organizations_url":"https://api.github.com/users/storkie/orgs","repos_url":"https://api.github.com/users/storkie/repos","events_url":"https://api.github.com/users/storkie/events{/privacy}","received_events_url":"https://api.github.com/users/storkie/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T07:32:57Z","updated_at":"2016-09-05T07:32:57Z","body":"@freaky250197 Det er korrekt, så vil I aldrig modtage callback.\r\n\r\nJeg vil anbefale, at I udelukkende opretter en ordre, hvis callback er modtaget.\r\nDet kan gøres ved at rette\r\nhttps://github.com/ePay/prestashop/blob/master/epay/controllers/front/validation.php#L57\r\nfra\r\n`if($this->module->validateOrder((int)$id_cart, Configuration::get('PS_OS_PAYMENT'), $total, $this->module->displayName, $message, $mailVars, null, false, $cart->secure_key))\r\n`\r\ntil\r\n`if(Tools::getValue('callback') == \"1\" && $this->module->validateOrder((int)$id_cart, Configuration::get('PS_OS_PAYMENT'), $total, $this->module->displayName, $message, $mailVars, null, false, $cart->secure_key))`"}}
{"actor":{"display_login":"storkie"}}