{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/376","labels_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/376/comments","events_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/376/events","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/376","id":100558150,"number":376,"title":"WARNING: Missing Accessor: PayPal\\Auth\\OAuthTokenCredential:setAccessToken","user":{"login":"kevinbarbary","id":2116233,"avatar_url":"https://avatars.githubusercontent.com/u/2116233?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinbarbary","html_url":"https://github.com/kevinbarbary","followers_url":"https://api.github.com/users/kevinbarbary/followers","following_url":"https://api.github.com/users/kevinbarbary/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarbary/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarbary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarbary/subscriptions","organizations_url":"https://api.github.com/users/kevinbarbary/orgs","repos_url":"https://api.github.com/users/kevinbarbary/repos","events_url":"https://api.github.com/users/kevinbarbary/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarbary/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/question","name":"question","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-12T14:39:19Z","updated_at":"2015-08-19T09:45:51Z","closed_at":"2015-08-17T18:06:22Z","body":"[12-08-2015 11:11:56] PayPal\\Core\\PayPalHttpConnection: INFO\t: POST https://api.paypal.com/v1/oauth2/token\r\n[12-08-2015 11:11:58] PayPal\\Core\\PayPalHttpConnection: INFO\t: Response Status \t: 200\r\n[12-08-2015 11:11:58] PayPal\\Validation\\ModelAccessorValidator: WARNING\t: Missing Accessor: PayPal\\Auth\\OAuthTokenCredential:setAccessToken. Please let us know by creating an issue at https://github.com/paypal/PayPal-PHP-SDK/issues\r\n\r\nThis is an intermittent error on our live servers. Any help would be appreciated."},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/comments/132517202","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/376#issuecomment-132517202","issue_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/376","id":132517202,"user":{"login":"kevinbarbary","id":2116233,"avatar_url":"https://avatars.githubusercontent.com/u/2116233?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinbarbary","html_url":"https://github.com/kevinbarbary","followers_url":"https://api.github.com/users/kevinbarbary/followers","following_url":"https://api.github.com/users/kevinbarbary/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarbary/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarbary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarbary/subscriptions","organizations_url":"https://api.github.com/users/kevinbarbary/orgs","repos_url":"https://api.github.com/users/kevinbarbary/repos","events_url":"https://api.github.com/users/kevinbarbary/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarbary/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T09:45:51Z","updated_at":"2015-08-19T09:45:51Z","body":"Hi,\r\n\r\nThe accessToken is stored in the session so that it can later be used in a cURL session thus:\r\n\r\n\t$payment_execute = array(\r\n\t\t'payer_id' => $_GET[\"PayerID\"]\r\n\t);\r\n\r\n\t$postdata = json_encode($payment_execute);\r\n\r\n\t$curl = curl_init(\"https://api.paypal.com/v1/payments/payment/\".$_GET[\"paymentId\"].\"/execute/\"); \r\n\t...\r\n\tcurl_setopt($curl, CURLOPT_HTTPHEADER, array(\r\n\t\t\t\t'Authorization: Bearer '.$accessToken,\r\n\t\t\t\t'Accept: application/json',\r\n\t\t\t\t'Content-Type: application/json'\r\n\t\t\t\t));\r\n\tcurl_setopt($curl, CURLOPT_POSTFIELDS, $postdata); \r\n"}}