{"action":"created","issue":{"url":"https://api.github.com/repos/isotope/core/issues/1514","labels_url":"https://api.github.com/repos/isotope/core/issues/1514/labels{/name}","comments_url":"https://api.github.com/repos/isotope/core/issues/1514/comments","events_url":"https://api.github.com/repos/isotope/core/issues/1514/events","html_url":"https://github.com/isotope/core/issues/1514","id":103724275,"number":1514,"title":"Falsche Prüfung der Payment-ID führt zu \"Bezahlung fehlgeschlagen\"","user":{"login":"okMario","id":14016820,"avatar_url":"https://avatars.githubusercontent.com/u/14016820?v=3","gravatar_id":"","url":"https://api.github.com/users/okMario","html_url":"https://github.com/okMario","followers_url":"https://api.github.com/users/okMario/followers","following_url":"https://api.github.com/users/okMario/following{/other_user}","gists_url":"https://api.github.com/users/okMario/gists{/gist_id}","starred_url":"https://api.github.com/users/okMario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okMario/subscriptions","organizations_url":"https://api.github.com/users/okMario/orgs","repos_url":"https://api.github.com/users/okMario/repos","events_url":"https://api.github.com/users/okMario/events{/privacy}","received_events_url":"https://api.github.com/users/okMario/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-28T14:04:25Z","updated_at":"2015-09-01T10:02:57Z","closed_at":null,"body":"Zeile 142 in /isotope/library/isotope/module/checkout.php:\r\n\r\n$strBuffer = $objOrder->hasPayment() ? $objOrder->getPaymentMethod()->processPayment($objOrder, $this) : true;\r\n\r\nDie Abfrage verursacht eine Endlosschleife nach der Abfrage der Payment ID, die es aber gibt.\r\nWenn $objOrder->hasPayment() true ist, wird erneut eine Abfrage auf das Payment gestartet, richtig wäre aber das true zurück kommt oder die Abfrage negiert wird.\r\n\r\nRichtig wäre:\r\n\r\n$strBuffer = !$objOrder->hasPayment() ? $objOrder->getPaymentMethod()->processPayment($objOrder, $this) : true;\r\n\r\nSomit funktioniert es.\r\n\r\nIch hatte massive Probleme mit PayOne und genau dieses Ausrufezeichen hat es gelöst."},"comment":{"url":"https://api.github.com/repos/isotope/core/issues/comments/136660597","html_url":"https://github.com/isotope/core/issues/1514#issuecomment-136660597","issue_url":"https://api.github.com/repos/isotope/core/issues/1514","id":136660597,"user":{"login":"okMario","id":14016820,"avatar_url":"https://avatars.githubusercontent.com/u/14016820?v=3","gravatar_id":"","url":"https://api.github.com/users/okMario","html_url":"https://github.com/okMario","followers_url":"https://api.github.com/users/okMario/followers","following_url":"https://api.github.com/users/okMario/following{/other_user}","gists_url":"https://api.github.com/users/okMario/gists{/gist_id}","starred_url":"https://api.github.com/users/okMario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okMario/subscriptions","organizations_url":"https://api.github.com/users/okMario/orgs","repos_url":"https://api.github.com/users/okMario/repos","events_url":"https://api.github.com/users/okMario/events{/privacy}","received_events_url":"https://api.github.com/users/okMario/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T10:02:57Z","updated_at":"2015-09-01T10:02:57Z","body":"Wenn ich den Code wieder korrigiere, eine Bestellung ausführe, dann erhalte ich bei Payone (Nutzung der FrontEnd Schnittstelle) den Fehler \"Failed Dependency\".\r\n\r\nDer wird in der postsale.php verursacht:\r\n<pre>$objOrder = $objMethod->getPostsaleOrder();\r\n\r\n            if (null === $objOrder || !($objOrder instanceof IsotopeProductCollection)) {\r\n                \\System::log(get_class($objMethod) . ' did not return a valid order', __METHOD__, TL_ERROR);\r\n\r\n                $objResponse = new Response('Failed Dependency', 424);\r\n                $objResponse->send();\r\n            }</pre>\r\n\r\nBin da echt ratlos, wo der Fehler ist."}}