{"action":"opened","issue":{"url":"https://api.github.com/repos/paypal/ipn-code-samples/issues/124","repository_url":"https://api.github.com/repos/paypal/ipn-code-samples","labels_url":"https://api.github.com/repos/paypal/ipn-code-samples/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/paypal/ipn-code-samples/issues/124/comments","events_url":"https://api.github.com/repos/paypal/ipn-code-samples/issues/124/events","html_url":"https://github.com/paypal/ipn-code-samples/issues/124","id":300066537,"number":124,"title":"Missing POST Data","user":{"login":"juanmasantos","id":36444604,"avatar_url":"https://avatars1.githubusercontent.com/u/36444604?v=4","gravatar_id":"","url":"https://api.github.com/users/juanmasantos","html_url":"https://github.com/juanmasantos","followers_url":"https://api.github.com/users/juanmasantos/followers","following_url":"https://api.github.com/users/juanmasantos/following{/other_user}","gists_url":"https://api.github.com/users/juanmasantos/gists{/gist_id}","starred_url":"https://api.github.com/users/juanmasantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanmasantos/subscriptions","organizations_url":"https://api.github.com/users/juanmasantos/orgs","repos_url":"https://api.github.com/users/juanmasantos/repos","events_url":"https://api.github.com/users/juanmasantos/events{/privacy}","received_events_url":"https://api.github.com/users/juanmasantos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-25T22:09:53Z","updated_at":"2018-02-25T22:09:53Z","closed_at":null,"author_association":"NONE","body":"### General information\r\n\r\n* Environment: windows\r\n\r\n* Language, language version, and OS: PHP\r\n\r\n### Issue description\r\n\r\nHello everyone!\r\n\r\nI'm having a real problem with the Paypal system, it doesn't work to me, just that. I think I have followed all the steps at perfection but... I'm about to throw in the towle. I know there are many issues open but none work for me, I explain myself.\r\n\r\nI've got the first file I have called zzz.php (listener)\r\n```\r\n<?php namespace Listener;\r\n\r\nrequire('PaypalIPN.php');\r\n\r\nuse PaypalIPN;\r\n\r\n$ipn = new PaypalIPN();\r\n\r\n// Use the sandbox endpoint during testing.\r\n$ipn->useSandbox();\r\n$verified = $ipn->verifyIPN();\r\nif ($verified) {\r\n\t$response = \"verified\";\r\n\tfile_put_contents(\"test.txt\", $response);\r\n    /*\r\n     * Process IPN\r\n     * A list of variables is available here:\r\n     * https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNandPDTVariables/\r\n     */\r\n} else {\r\n\t$response = \"negativo2\";\r\n\tfile_put_contents(\"test.txt\", $response);\r\n}\r\n\r\n// Reply with an empty 200 response to indicate to paypal the IPN was received correctly.\r\nheader(\"HTTP/1.1 200 OK\");\r\n?>\r\n```\r\nPaypalIPN.php which we all know. The error log of my server throws \r\n```\r\n[25-Feb-2018 16:46:49 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'Missing POST Data' in /home2/laplatas/public_html/php/PaypalIPN.php:72\r\nStack trace:\r\n#0 /home2/laplatas/public_html/php/zzz.php(11): PaypalIPN->verifyIPN()\r\n#1 {main}\r\n  thrown in /home2/laplatas/public_html/php/PaypalIPN.php on line 72\r\n[25-Feb-2018 16:47:44 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'Missing POST Data' in /home2/laplatas/public_html/php/PaypalIPN.php:72\r\nStack trace:\r\n#0 /home2/laplatas/public_html/php/zzz.php(11): PaypalIPN->verifyIPN()\r\n#1 {main}\r\n  thrown in /home2/laplatas/public_html/php/PaypalIPN.php on line 72\r\n```\r\n\r\nThe adress of IPN is:\r\n\r\nhttps://www.laplata.surf/php/zzz.php (the first file I added to this post)\r\n\r\nThe button is sending the notify_url to:\r\n\r\nhttps://www.laplata.surf/php/zzz.php (same first file)\r\n\r\nThe button is sending the user to:\r\n\r\nhttps://www.laplata.surf/php/booking_correct.php (The thanks page)\r\n\r\nWhat am I doing wrong?\r\n\r\n"}}
{"actor":{"display_login":"juanmasantos"}}