{"action":"reopened","issue":{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/449","labels_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/449/comments","events_url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/issues/449/events","html_url":"https://github.com/paypal/PayPal-PHP-SDK/issues/449","id":118989298,"number":449,"title":"create future payment","user":{"login":"mohamednagy","id":10484012,"avatar_url":"https://avatars.githubusercontent.com/u/10484012?v=3","gravatar_id":"","url":"https://api.github.com/users/mohamednagy","html_url":"https://github.com/mohamednagy","followers_url":"https://api.github.com/users/mohamednagy/followers","following_url":"https://api.github.com/users/mohamednagy/following{/other_user}","gists_url":"https://api.github.com/users/mohamednagy/gists{/gist_id}","starred_url":"https://api.github.com/users/mohamednagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohamednagy/subscriptions","organizations_url":"https://api.github.com/users/mohamednagy/orgs","repos_url":"https://api.github.com/users/mohamednagy/repos","events_url":"https://api.github.com/users/mohamednagy/events{/privacy}","received_events_url":"https://api.github.com/users/mohamednagy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/api-payments","name":"api-payments","color":"207de5"},{"url":"https://api.github.com/repos/paypal/PayPal-PHP-SDK/labels/question","name":"question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-26T07:33:22Z","updated_at":"2015-11-26T18:47:05Z","closed_at":null,"body":"I followed the instructions in **CreateFuturePayment.php** sample\r\nI added my credentials to **$apiContext** as the following\r\n```\r\n$auth = new PayPal\\Auth\\OAuthTokenCredential(\r\n            'clientID',     // ClientID\r\n            'clientSecret'      // ClientSecret\r\n        );\r\n       $apiContext = new \\PayPal\\Rest\\ApiContext($auth);\r\n```\r\nwhen i call `$payment->create($this->apiContext, $clientMetadataId);` the payment created and the response retunred like this \r\n```\r\n{\r\n  \"id\": \"PAY-6RV70583SB702805EKEYSZ6Y\",\r\n  \"create_time\": \"2013-03-01T22:34:35Z\",\r\n  \"update_time\": \"2013-03-01T22:34:36Z\",\r\n  \"state\": \"created\",\r\n  \"intent\": \"sale\",\r\n  \"payer\": {\r\n    \"payment_method\": \"paypal\"\r\n  },\r\n  \"transactions\": [\r\n    {\r\n      \"amount\": {\r\n        \"total\": \"7.47\",\r\n        \"currency\": \"USD\",\r\n        \"details\": {\r\n          \"subtotal\": \"7.47\"\r\n        }\r\n      },\r\n      \"description\": \"This is the payment transaction description.\"\r\n    }\r\n  ],\r\n  \"links\": [\r\n    {\r\n      \"href\": \"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6RV70583SB702805EKEYSZ6Y\",\r\n      \"rel\": \"self\",\r\n      \"method\": \"GET\"\r\n    },\r\n    {\r\n      \"href\": \"https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=EC-60U79048BN7719609\",\r\n      \"rel\": \"approval_url\",\r\n      \"method\": \"REDIRECT\"\r\n    },\r\n    {\r\n      \"href\": \"https://api.sandbox.paypal.com/v1/payments/payment/PAY-6RV70583SB702805EKEYSZ6Y/execute\",\r\n      \"rel\": \"execute\",\r\n      \"method\": \"POST\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n**What i have to do next to execute the payment ?**"}}