{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/720","repository_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK","labels_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/720/comments","events_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/720/events","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/720","id":190148170,"number":720,"title":"Webhook verification from simulator always fails","user":{"login":"TJBIII","id":13630281,"avatar_url":"https://avatars.githubusercontent.com/u/13630281?v=3","gravatar_id":"","url":"https://api.github.com/users/TJBIII","html_url":"https://github.com/TJBIII","followers_url":"https://api.github.com/users/TJBIII/followers","following_url":"https://api.github.com/users/TJBIII/following{/other_user}","gists_url":"https://api.github.com/users/TJBIII/gists{/gist_id}","starred_url":"https://api.github.com/users/TJBIII/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TJBIII/subscriptions","organizations_url":"https://api.github.com/users/TJBIII/orgs","repos_url":"https://api.github.com/users/TJBIII/repos","events_url":"https://api.github.com/users/TJBIII/events{/privacy}","received_events_url":"https://api.github.com/users/TJBIII/received_events","type":"User","site_admin":false},"labels":[{"id":117853775,"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/api-bug","name":"api-bug","color":"fbca04","default":false},{"id":180529350,"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/api-webhooks","name":"api-webhooks","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-17T20:00:35Z","updated_at":"2016-11-21T17:07:34Z","closed_at":null,"body":"### Required Information\r\n\r\n- PHP Version: PHP 5.5.19\r\n- PayPal-PHP-SDK Version: 1.10.0\r\n- Debug ID(s): d6cbd6047e486\r\n\r\n### Issue Description\r\n\r\nI am using a webhook for payout batch event notifications. I followed the example webhook validation as described in the [docs](http://paypal.github.io/PayPal-PHP-SDK/sample/doc/notifications/ValidateWebhookEvent.html). I always receive `{ \"verification_status\": \"FAILURE\"}` as the response. I am in sandbox mode and firing the notification from the webhook simulator in the developer dashboard.\r\n\r\nHere is an example of my post data for the verification request:\r\n```\r\n{\r\n   \"auth_algo\":\"SHA256withRSA\",\r\n   \"transmission_id\":\"505fcad0-acfc-11e6-8e5f-13662a490b19\",\r\n   \"cert_url\":\"https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-df8cd2d5\",\r\n   \"webhook_id\":\"2A9741408B151863U\",\r\n \"transmission_sig\":\"ks91bo8HXCMsQBrXKOyOrs46KJkTVZRA7Az2oArXKNNaSxnMHENKIBUv4yOolVplwwFC1+u1pF1fIqRysqFgpgnQ8i8huROBJHiKaN9BeBdm1qnQiXyF7CSmHJ4MDVAQPvB1zHncbnJ5lIbzOhFm9TRLp7CaFk8IXNvCR6FTO5jqwfhpzTmf5k1MRbneexbnjmipQ9P3IDmKpAGLxweN/THixXgmC2GMdIIfVHCXZ8bvhcKPeMJ/0J8DQxlwpOteRbEYY25Kkpaej1ZhzAZ9/JjfxEZnARcax0i/O5ht8GOGPBhOUYKB19u1ZHxjoWEDUrrE1GDJOklNUpmqIPRug==\",\r\n   \"transmission_time\":\"2016-11-17T19:30:36Z\",\r\n   \"webhook_event\":{\r\n      \"id\":\"WH-9J627718KS478452F-0TT97515BN811434B\",\r\n      \"event_version\":\"1.0\",\r\n      \"create_time\":\"2015-09-14T13:18:15Z\",\r\n      \"resource_type\":\"payouts\",\r\n      \"event_type\":\"PAYMENT.PAYOUTSBATCH.PROCESSING\",\r\n      \"summary\":\"Payouts batch is getting processed.\",\r\n      \"resource\":{\r\n         \"batch_header\":{\r\n            \"payout_batch_id\":\"X24X9BJL2UK52\",\r\n            \"batch_status\":\"PROCESSING\",\r\n            \"time_created\":\"2015-09-14T13:18:13Z\",\r\n            \"sender_batch_header\":{\r\n               \"sender_batch_id\":\"ISO-22\"\r\n            },\r\n            \"amount\":{\r\n               \"currency\":\"USD\",\r\n               \"value\":\"12.43\"\r\n            },\r\n            \"fees\":{\r\n               \"currency\":\"USD\",\r\n               \"value\":\"0.5\"\r\n            },\r\n            \"payments\":2\r\n         },\r\n         \"links\":[\r\n            {\r\n               \"href\":\"https://api.paypal.com/v1/payments/payouts/X24X9BJL2UK52\",\r\n               \"rel\":\"self\",\r\n               \"method\":\"GET\"\r\n            }\r\n         ]\r\n      },\r\n      \"links\":[\r\n         {\r\n            \"href\":\"https://api.paypal.com/v1/notifications/webhooks-events/WH-9J627718KS478452F-0TT97515BN811434B\",\r\n            \"rel\":\"self\",\r\n            \"method\":\"GET\"\r\n         },\r\n         {\r\n            \"href\":\"https://api.paypal.com/v1/notifications/webhooks-events/WH-9J627718KS478452F-0TT97515BN811434B/resend\",\r\n            \"rel\":\"resend\",\r\n            \"method\":\"POST\"\r\n         }\r\n      ]\r\n   }\r\n}\r\n```\r\n\r\nCURL_HEADER_OUT:\r\n```\r\nPOST /v1/notifications/verify-webhook-signature HTTP/1.1\r\nHost: api.sandbox.paypal.com\r\nAccept: */*\r\nContent-Type: application/json\r\nUser-Agent: PayPalSDK/PayPal-PHP-SDK 1.10.0\r\nAuthorization: Bearer <my access token>\r\nPayPal-Request-Id: 288679526856147939137562357\r\nContent-Length: 1535\r\n```\r\n\r\nThe response:\r\n```\r\n HTTP/1.1 200 OK\r\nDate: Thu, 17 Nov 2016 19:30:42 GMT\r\nServer: Apache\r\nPROXY_SERVER_INFO: host=slcsbplatformapiserv3002.slc.paypal.com;threadId=541\r\nPaypal-Debug-Id: d6cbd6047e486\r\nCORRELATION-ID: d6cbd6047e486\r\nContent-Language: *\r\nPaypal-Debug-Id: d6cbd6047e486\r\nSet-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D1644506712%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Thu, 17 Nov 2016 20:00:42 GMT; domain=.paypal.com; path=/; Secure; HttpOnly\r\nSet-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\nVary: Authorization\r\nContent-Length: 33\r\nConnection: close\r\nContent-Type: application/json\r\n\r\n{\"verification_status\":\"FAILURE\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/comments/262001270","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/720#issuecomment-262001270","issue_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/720","id":262001270,"user":{"login":"webface","id":681890,"avatar_url":"https://avatars.githubusercontent.com/u/681890?v=3","gravatar_id":"","url":"https://api.github.com/users/webface","html_url":"https://github.com/webface","followers_url":"https://api.github.com/users/webface/followers","following_url":"https://api.github.com/users/webface/following{/other_user}","gists_url":"https://api.github.com/users/webface/gists{/gist_id}","starred_url":"https://api.github.com/users/webface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webface/subscriptions","organizations_url":"https://api.github.com/users/webface/orgs","repos_url":"https://api.github.com/users/webface/repos","events_url":"https://api.github.com/users/webface/events{/privacy}","received_events_url":"https://api.github.com/users/webface/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T17:07:34Z","updated_at":"2016-11-21T17:07:34Z","body":"@pp-randy Yes the left dropdown is now showing no apps. I have logged out and logged in on different browsers. Same result."}}
{"actor":{"display_login":"webface"}}