{"action":"closed","issue":{"url":"https://api.github.com/repos/paypal/PayPal-iOS-SDK/issues/319","labels_url":"https://api.github.com/repos/paypal/PayPal-iOS-SDK/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-iOS-SDK/issues/319/comments","events_url":"https://api.github.com/repos/paypal/PayPal-iOS-SDK/issues/319/events","html_url":"https://github.com/paypal/PayPal-iOS-SDK/issues/319","id":105364941,"number":319,"title":"HTTP/1.1 401 Unauthorized while Capture the payment","user":{"login":"thesaad","id":3445416,"avatar_url":"https://avatars.githubusercontent.com/u/3445416?v=3","gravatar_id":"","url":"https://api.github.com/users/thesaad","html_url":"https://github.com/thesaad","followers_url":"https://api.github.com/users/thesaad/followers","following_url":"https://api.github.com/users/thesaad/following{/other_user}","gists_url":"https://api.github.com/users/thesaad/gists{/gist_id}","starred_url":"https://api.github.com/users/thesaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesaad/subscriptions","organizations_url":"https://api.github.com/users/thesaad/orgs","repos_url":"https://api.github.com/users/thesaad/repos","events_url":"https://api.github.com/users/thesaad/events{/privacy}","received_events_url":"https://api.github.com/users/thesaad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/PayPal-iOS-SDK/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T12:06:15Z","updated_at":"2015-09-28T14:46:05Z","closed_at":"2015-09-28T14:46:05Z","body":"I've integrated 2.11.4 SDK to iOS. It works fine and respond with pay key and authorization_id ID as \r\n[response: {\r\n    \"authorization_id\" = 68U57154RK998670U;\r\n    \"create_time\" = \"2015-09-08T11:58:20Z\";\r\n    id = \"PAY-1JA82247XK2165739KXXM2XA\";\r\n    intent = authorize;\r\n    state = approved;\r\n}, client: {\r\n    environment = sandbox;\r\n    \"paypal_sdk_version\" = \"2.11.4\";\r\n    platform = iOS;\r\n    \"product_name\" = \"PayPal iOS SDK\";\r\n}, response_type: payment]\r\n\r\nBut when I capture at server side by using Curl given at https://developer.paypal.com/webapps/developer/docs/integration/direct/capture-payment/#capture-the-payment\r\nas:\r\n\r\ncurl -v https://api.sandbox.paypal.com/v1/payments/authorization/68U57154RK998670U/capture \\\r\n-H \"Content-Type:application/json\" \\\r\n-H \"Authorization: Bearer \" \\\r\n-d '{\r\n  \"amount\":{\r\n    \"currency\":\"USD\",\r\n    \"total\":\"4.54\"\r\n  },\r\n  \"is_final_capture\":true\r\n}'\r\n\r\nIt gives me Unauthorized always. as: \r\n\r\n* upload completely sent off: 102 out of 102 bytes\r\n< HTTP/1.1 401 Unauthorized\r\n< Date: Tue, 08 Sep 2015 11:59:33 GMT\r\n< Server: Apache\r\n< PROXY_SERVER_INFO: host=slcsbplatformapiserv3001.slc.paypal.com;threadId=548\r\n< Paypal-Debug-Id: 490006a94d195\r\n< Content-Length: 0\r\n< Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D2781736533; domain=.paypal.com; path=/; Secure; HttpOnly\r\n< Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\r\n< Vary: Authorization\r\n< Connection: close\r\n< Content-Type: application/json\r\n\r\nCan Anyone let me know how to fix that??"}}