{"action":"created","comment":{"url":"https://api.github.com/repos/namshi/innovate/pulls/comments/29137139","id":29137139,"diff_hunk":"@@ -167,6 +181,35 @@ public function createMpiRequest($method = 'GET', $uri = null, $headers = null,\n     }\n \n     /**\n+     * Given a cart id reference will search for transaction for that cart id on innovate\n+     *\n+     * @param $ref\n+     * @return \\SimpleXMLElement\n+     * @throws InnovateException\n+     */\n+    public function searchPaymentsByCartId($ref)\n+    {\n+        $client = new \\Guzzle\\Http\\Client(self::INNOVATE_SEARCH_URL, array(\n+            'request.options' => array(\n+                'auth'    => array($this->merchantId, $this->key, 'Basic'),\n+            )\n+        ));\n+        $request = $client->get('/tools/api/xml/transaction/'.$ref.'/cart');","path":"src/Namshi/Innovate/Client.php","position":null,"original_position":87,"commit_id":"e73feb01c5e61b3b5e2ad1aba85012aa982935c7","original_commit_id":"4e49b622d78f3da390702b263ffc70e8ba650988","user":{"login":"AyhamAlzoubi","id":1628272,"avatar_url":"https://avatars.githubusercontent.com/u/1628272?v=3","gravatar_id":"","url":"https://api.github.com/users/AyhamAlzoubi","html_url":"https://github.com/AyhamAlzoubi","followers_url":"https://api.github.com/users/AyhamAlzoubi/followers","following_url":"https://api.github.com/users/AyhamAlzoubi/following{/other_user}","gists_url":"https://api.github.com/users/AyhamAlzoubi/gists{/gist_id}","starred_url":"https://api.github.com/users/AyhamAlzoubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AyhamAlzoubi/subscriptions","organizations_url":"https://api.github.com/users/AyhamAlzoubi/orgs","repos_url":"https://api.github.com/users/AyhamAlzoubi/repos","events_url":"https://api.github.com/users/AyhamAlzoubi/events{/privacy}","received_events_url":"https://api.github.com/users/AyhamAlzoubi/received_events","type":"User","site_admin":false},"body":"Will be easier to find and change it if required :)","created_at":"2015-04-27T10:55:50Z","updated_at":"2015-04-27T10:55:50Z","html_url":"https://github.com/namshi/innovate/pull/13#discussion_r29137139","pull_request_url":"https://api.github.com/repos/namshi/innovate/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/namshi/innovate/pulls/comments/29137139"},"html":{"href":"https://github.com/namshi/innovate/pull/13#discussion_r29137139"},"pull_request":{"href":"https://api.github.com/repos/namshi/innovate/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/namshi/innovate/pulls/13","id":34145005,"html_url":"https://github.com/namshi/innovate/pull/13","diff_url":"https://github.com/namshi/innovate/pull/13.diff","patch_url":"https://github.com/namshi/innovate/pull/13.patch","issue_url":"https://api.github.com/repos/namshi/innovate/issues/13","number":13,"state":"open","locked":false,"title":"Add method to search transaction by cart id","user":{"login":"p16","id":272483,"avatar_url":"https://avatars.githubusercontent.com/u/272483?v=3","gravatar_id":"","url":"https://api.github.com/users/p16","html_url":"https://github.com/p16","followers_url":"https://api.github.com/users/p16/followers","following_url":"https://api.github.com/users/p16/following{/other_user}","gists_url":"https://api.github.com/users/p16/gists{/gist_id}","starred_url":"https://api.github.com/users/p16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p16/subscriptions","organizations_url":"https://api.github.com/users/p16/orgs","repos_url":"https://api.github.com/users/p16/repos","events_url":"https://api.github.com/users/p16/events{/privacy}","received_events_url":"https://api.github.com/users/p16/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-27T07:24:37Z","updated_at":"2015-04-27T10:55:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cafc745657b54508c948341f23922ceafb15a3cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/namshi/innovate/pulls/13/commits","review_comments_url":"https://api.github.com/repos/namshi/innovate/pulls/13/comments","review_comment_url":"https://api.github.com/repos/namshi/innovate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/namshi/innovate/issues/13/comments","statuses_url":"https://api.github.com/repos/namshi/innovate/statuses/e73feb01c5e61b3b5e2ad1aba85012aa982935c7","head":{"label":"namshi:add-call-for-transaction-for-cart-id","ref":"add-call-for-transaction-for-cart-id","sha":"e73feb01c5e61b3b5e2ad1aba85012aa982935c7","user":{"login":"namshi","id":2181945,"avatar_url":"https://avatars.githubusercontent.com/u/2181945?v=3","gravatar_id":"","url":"https://api.github.com/users/namshi","html_url":"https://github.com/namshi","followers_url":"https://api.github.com/users/namshi/followers","following_url":"https://api.github.com/users/namshi/following{/other_user}","gists_url":"https://api.github.com/users/namshi/gists{/gist_id}","starred_url":"https://api.github.com/users/namshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namshi/subscriptions","organizations_url":"https://api.github.com/users/namshi/orgs","repos_url":"https://api.github.com/users/namshi/repos","events_url":"https://api.github.com/users/namshi/events{/privacy}","received_events_url":"https://api.github.com/users/namshi/received_events","type":"Organization","site_admin":false},"repo":{"id":11119795,"name":"innovate","full_name":"namshi/innovate","owner":{"login":"namshi","id":2181945,"avatar_url":"https://avatars.githubusercontent.com/u/2181945?v=3","gravatar_id":"","url":"https://api.github.com/users/namshi","html_url":"https://github.com/namshi","followers_url":"https://api.github.com/users/namshi/followers","following_url":"https://api.github.com/users/namshi/following{/other_user}","gists_url":"https://api.github.com/users/namshi/gists{/gist_id}","starred_url":"https://api.github.com/users/namshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namshi/subscriptions","organizations_url":"https://api.github.com/users/namshi/orgs","repos_url":"https://api.github.com/users/namshi/repos","events_url":"https://api.github.com/users/namshi/events{/privacy}","received_events_url":"https://api.github.com/users/namshi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namshi/innovate","description":"Client for the Innovate payment Gateway.","fork":false,"url":"https://api.github.com/repos/namshi/innovate","forks_url":"https://api.github.com/repos/namshi/innovate/forks","keys_url":"https://api.github.com/repos/namshi/innovate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namshi/innovate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namshi/innovate/teams","hooks_url":"https://api.github.com/repos/namshi/innovate/hooks","issue_events_url":"https://api.github.com/repos/namshi/innovate/issues/events{/number}","events_url":"https://api.github.com/repos/namshi/innovate/events","assignees_url":"https://api.github.com/repos/namshi/innovate/assignees{/user}","branches_url":"https://api.github.com/repos/namshi/innovate/branches{/branch}","tags_url":"https://api.github.com/repos/namshi/innovate/tags","blobs_url":"https://api.github.com/repos/namshi/innovate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namshi/innovate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namshi/innovate/git/refs{/sha}","trees_url":"https://api.github.com/repos/namshi/innovate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namshi/innovate/statuses/{sha}","languages_url":"https://api.github.com/repos/namshi/innovate/languages","stargazers_url":"https://api.github.com/repos/namshi/innovate/stargazers","contributors_url":"https://api.github.com/repos/namshi/innovate/contributors","subscribers_url":"https://api.github.com/repos/namshi/innovate/subscribers","subscription_url":"https://api.github.com/repos/namshi/innovate/subscription","commits_url":"https://api.github.com/repos/namshi/innovate/commits{/sha}","git_commits_url":"https://api.github.com/repos/namshi/innovate/git/commits{/sha}","comments_url":"https://api.github.com/repos/namshi/innovate/comments{/number}","issue_comment_url":"https://api.github.com/repos/namshi/innovate/issues/comments{/number}","contents_url":"https://api.github.com/repos/namshi/innovate/contents/{+path}","compare_url":"https://api.github.com/repos/namshi/innovate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namshi/innovate/merges","archive_url":"https://api.github.com/repos/namshi/innovate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namshi/innovate/downloads","issues_url":"https://api.github.com/repos/namshi/innovate/issues{/number}","pulls_url":"https://api.github.com/repos/namshi/innovate/pulls{/number}","milestones_url":"https://api.github.com/repos/namshi/innovate/milestones{/number}","notifications_url":"https://api.github.com/repos/namshi/innovate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namshi/innovate/labels{/name}","releases_url":"https://api.github.com/repos/namshi/innovate/releases{/id}","created_at":"2013-07-02T07:58:05Z","updated_at":"2014-09-05T12:31:11Z","pushed_at":"2015-04-27T10:51:30Z","git_url":"git://github.com/namshi/innovate.git","ssh_url":"git@github.com:namshi/innovate.git","clone_url":"https://github.com/namshi/innovate.git","svn_url":"https://github.com/namshi/innovate","homepage":null,"size":452,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"namshi:master","ref":"master","sha":"a7601ee8f1e008b05b4d27567bcb860134e8d005","user":{"login":"namshi","id":2181945,"avatar_url":"https://avatars.githubusercontent.com/u/2181945?v=3","gravatar_id":"","url":"https://api.github.com/users/namshi","html_url":"https://github.com/namshi","followers_url":"https://api.github.com/users/namshi/followers","following_url":"https://api.github.com/users/namshi/following{/other_user}","gists_url":"https://api.github.com/users/namshi/gists{/gist_id}","starred_url":"https://api.github.com/users/namshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namshi/subscriptions","organizations_url":"https://api.github.com/users/namshi/orgs","repos_url":"https://api.github.com/users/namshi/repos","events_url":"https://api.github.com/users/namshi/events{/privacy}","received_events_url":"https://api.github.com/users/namshi/received_events","type":"Organization","site_admin":false},"repo":{"id":11119795,"name":"innovate","full_name":"namshi/innovate","owner":{"login":"namshi","id":2181945,"avatar_url":"https://avatars.githubusercontent.com/u/2181945?v=3","gravatar_id":"","url":"https://api.github.com/users/namshi","html_url":"https://github.com/namshi","followers_url":"https://api.github.com/users/namshi/followers","following_url":"https://api.github.com/users/namshi/following{/other_user}","gists_url":"https://api.github.com/users/namshi/gists{/gist_id}","starred_url":"https://api.github.com/users/namshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namshi/subscriptions","organizations_url":"https://api.github.com/users/namshi/orgs","repos_url":"https://api.github.com/users/namshi/repos","events_url":"https://api.github.com/users/namshi/events{/privacy}","received_events_url":"https://api.github.com/users/namshi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namshi/innovate","description":"Client for the Innovate payment Gateway.","fork":false,"url":"https://api.github.com/repos/namshi/innovate","forks_url":"https://api.github.com/repos/namshi/innovate/forks","keys_url":"https://api.github.com/repos/namshi/innovate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namshi/innovate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namshi/innovate/teams","hooks_url":"https://api.github.com/repos/namshi/innovate/hooks","issue_events_url":"https://api.github.com/repos/namshi/innovate/issues/events{/number}","events_url":"https://api.github.com/repos/namshi/innovate/events","assignees_url":"https://api.github.com/repos/namshi/innovate/assignees{/user}","branches_url":"https://api.github.com/repos/namshi/innovate/branches{/branch}","tags_url":"https://api.github.com/repos/namshi/innovate/tags","blobs_url":"https://api.github.com/repos/namshi/innovate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namshi/innovate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namshi/innovate/git/refs{/sha}","trees_url":"https://api.github.com/repos/namshi/innovate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namshi/innovate/statuses/{sha}","languages_url":"https://api.github.com/repos/namshi/innovate/languages","stargazers_url":"https://api.github.com/repos/namshi/innovate/stargazers","contributors_url":"https://api.github.com/repos/namshi/innovate/contributors","subscribers_url":"https://api.github.com/repos/namshi/innovate/subscribers","subscription_url":"https://api.github.com/repos/namshi/innovate/subscription","commits_url":"https://api.github.com/repos/namshi/innovate/commits{/sha}","git_commits_url":"https://api.github.com/repos/namshi/innovate/git/commits{/sha}","comments_url":"https://api.github.com/repos/namshi/innovate/comments{/number}","issue_comment_url":"https://api.github.com/repos/namshi/innovate/issues/comments{/number}","contents_url":"https://api.github.com/repos/namshi/innovate/contents/{+path}","compare_url":"https://api.github.com/repos/namshi/innovate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namshi/innovate/merges","archive_url":"https://api.github.com/repos/namshi/innovate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namshi/innovate/downloads","issues_url":"https://api.github.com/repos/namshi/innovate/issues{/number}","pulls_url":"https://api.github.com/repos/namshi/innovate/pulls{/number}","milestones_url":"https://api.github.com/repos/namshi/innovate/milestones{/number}","notifications_url":"https://api.github.com/repos/namshi/innovate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namshi/innovate/labels{/name}","releases_url":"https://api.github.com/repos/namshi/innovate/releases{/id}","created_at":"2013-07-02T07:58:05Z","updated_at":"2014-09-05T12:31:11Z","pushed_at":"2015-04-27T10:51:30Z","git_url":"git://github.com/namshi/innovate.git","ssh_url":"git@github.com:namshi/innovate.git","clone_url":"https://github.com/namshi/innovate.git","svn_url":"https://github.com/namshi/innovate","homepage":null,"size":452,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/namshi/innovate/pulls/13"},"html":{"href":"https://github.com/namshi/innovate/pull/13"},"issue":{"href":"https://api.github.com/repos/namshi/innovate/issues/13"},"comments":{"href":"https://api.github.com/repos/namshi/innovate/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/namshi/innovate/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/namshi/innovate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/namshi/innovate/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/namshi/innovate/statuses/e73feb01c5e61b3b5e2ad1aba85012aa982935c7"}}}}