{"action":"created","comment":{"url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/comments/64390680","id":64390680,"diff_hunk":"@@ -864,10 +864,12 @@ def commit(action, request)\n         response_params['direct_response'] = parse_direct_response(response_params['direct_response']) if response_params['direct_response']\n         transaction_id = response_params['direct_response']['transaction_id'] if response_params['direct_response']\n \n-        Response.new(success, message, response_params,\n-          :test => test_mode,\n-          :authorization => transaction_id || response_params['customer_profile_id'] || (response_params['profile'] ? response_params['profile']['customer_profile_id'] : nil)\n-        )\n+        response_options = {}\n+        response_options[:test] = test_mode\n+        response_options[:authorization] = transaction_id || response_params['customer_profile_id'] || (response_params['profile'] ? response_params['profile']['customer_profile_id'] : nil)\n+        response_options[:error_code] = response_params['messages']['message']['code'] unless success","path":"lib/active_merchant/billing/gateways/authorize_net_cim.rb","position":11,"original_position":11,"commit_id":"722ff73564385d71cf8326abf41ce0d298d6e7b4","original_commit_id":"722ff73564385d71cf8326abf41ce0d298d6e7b4","user":{"login":"timbeiko","id":9390255,"avatar_url":"https://avatars.githubusercontent.com/u/9390255?v=3","gravatar_id":"","url":"https://api.github.com/users/timbeiko","html_url":"https://github.com/timbeiko","followers_url":"https://api.github.com/users/timbeiko/followers","following_url":"https://api.github.com/users/timbeiko/following{/other_user}","gists_url":"https://api.github.com/users/timbeiko/gists{/gist_id}","starred_url":"https://api.github.com/users/timbeiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbeiko/subscriptions","organizations_url":"https://api.github.com/users/timbeiko/orgs","repos_url":"https://api.github.com/users/timbeiko/repos","events_url":"https://api.github.com/users/timbeiko/events{/privacy}","received_events_url":"https://api.github.com/users/timbeiko/received_events","type":"User","site_admin":false},"body":"@ka8725 my bad, thanks for the link. It seems to be how they demo its usage, so LGTM.\r\n\r\n@aprofeit what do you think?","created_at":"2016-05-24T13:34:15Z","updated_at":"2016-05-24T13:34:15Z","html_url":"https://github.com/activemerchant/active_merchant/pull/2104#discussion_r64390680","pull_request_url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104","_links":{"self":{"href":"https://api.github.com/repos/activemerchant/active_merchant/pulls/comments/64390680"},"html":{"href":"https://github.com/activemerchant/active_merchant/pull/2104#discussion_r64390680"},"pull_request":{"href":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104"}}},"pull_request":{"url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104","id":69925602,"html_url":"https://github.com/activemerchant/active_merchant/pull/2104","diff_url":"https://github.com/activemerchant/active_merchant/pull/2104.diff","patch_url":"https://github.com/activemerchant/active_merchant/pull/2104.patch","issue_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/2104","number":2104,"state":"open","locked":false,"title":"Set error code for AuthorizeNetCimGateway response","user":{"login":"ka8725","id":243846,"avatar_url":"https://avatars.githubusercontent.com/u/243846?v=3","gravatar_id":"","url":"https://api.github.com/users/ka8725","html_url":"https://github.com/ka8725","followers_url":"https://api.github.com/users/ka8725/followers","following_url":"https://api.github.com/users/ka8725/following{/other_user}","gists_url":"https://api.github.com/users/ka8725/gists{/gist_id}","starred_url":"https://api.github.com/users/ka8725/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ka8725/subscriptions","organizations_url":"https://api.github.com/users/ka8725/orgs","repos_url":"https://api.github.com/users/ka8725/repos","events_url":"https://api.github.com/users/ka8725/events{/privacy}","received_events_url":"https://api.github.com/users/ka8725/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-13T00:00:32Z","updated_at":"2016-05-24T13:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2c91a055d958837a13f71249bcc6c222b7764dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104/commits","review_comments_url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104/comments","review_comment_url":"https://api.github.com/repos/activemerchant/active_merchant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/2104/comments","statuses_url":"https://api.github.com/repos/activemerchant/active_merchant/statuses/722ff73564385d71cf8326abf41ce0d298d6e7b4","head":{"label":"mezuka:master","ref":"master","sha":"722ff73564385d71cf8326abf41ce0d298d6e7b4","user":{"login":"mezuka","id":2676934,"avatar_url":"https://avatars.githubusercontent.com/u/2676934?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuka","html_url":"https://github.com/mezuka","followers_url":"https://api.github.com/users/mezuka/followers","following_url":"https://api.github.com/users/mezuka/following{/other_user}","gists_url":"https://api.github.com/users/mezuka/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuka/subscriptions","organizations_url":"https://api.github.com/users/mezuka/orgs","repos_url":"https://api.github.com/users/mezuka/repos","events_url":"https://api.github.com/users/mezuka/events{/privacy}","received_events_url":"https://api.github.com/users/mezuka/received_events","type":"Organization","site_admin":false},"repo":{"id":58684391,"name":"active_merchant","full_name":"mezuka/active_merchant","owner":{"login":"mezuka","id":2676934,"avatar_url":"https://avatars.githubusercontent.com/u/2676934?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuka","html_url":"https://github.com/mezuka","followers_url":"https://api.github.com/users/mezuka/followers","following_url":"https://api.github.com/users/mezuka/following{/other_user}","gists_url":"https://api.github.com/users/mezuka/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuka/subscriptions","organizations_url":"https://api.github.com/users/mezuka/orgs","repos_url":"https://api.github.com/users/mezuka/repos","events_url":"https://api.github.com/users/mezuka/events{/privacy}","received_events_url":"https://api.github.com/users/mezuka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mezuka/active_merchant","description":"Active Merchant is a simple payment abstraction library extracted from Shopify. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways.","fork":true,"url":"https://api.github.com/repos/mezuka/active_merchant","forks_url":"https://api.github.com/repos/mezuka/active_merchant/forks","keys_url":"https://api.github.com/repos/mezuka/active_merchant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mezuka/active_merchant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mezuka/active_merchant/teams","hooks_url":"https://api.github.com/repos/mezuka/active_merchant/hooks","issue_events_url":"https://api.github.com/repos/mezuka/active_merchant/issues/events{/number}","events_url":"https://api.github.com/repos/mezuka/active_merchant/events","assignees_url":"https://api.github.com/repos/mezuka/active_merchant/assignees{/user}","branches_url":"https://api.github.com/repos/mezuka/active_merchant/branches{/branch}","tags_url":"https://api.github.com/repos/mezuka/active_merchant/tags","blobs_url":"https://api.github.com/repos/mezuka/active_merchant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mezuka/active_merchant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mezuka/active_merchant/git/refs{/sha}","trees_url":"https://api.github.com/repos/mezuka/active_merchant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mezuka/active_merchant/statuses/{sha}","languages_url":"https://api.github.com/repos/mezuka/active_merchant/languages","stargazers_url":"https://api.github.com/repos/mezuka/active_merchant/stargazers","contributors_url":"https://api.github.com/repos/mezuka/active_merchant/contributors","subscribers_url":"https://api.github.com/repos/mezuka/active_merchant/subscribers","subscription_url":"https://api.github.com/repos/mezuka/active_merchant/subscription","commits_url":"https://api.github.com/repos/mezuka/active_merchant/commits{/sha}","git_commits_url":"https://api.github.com/repos/mezuka/active_merchant/git/commits{/sha}","comments_url":"https://api.github.com/repos/mezuka/active_merchant/comments{/number}","issue_comment_url":"https://api.github.com/repos/mezuka/active_merchant/issues/comments{/number}","contents_url":"https://api.github.com/repos/mezuka/active_merchant/contents/{+path}","compare_url":"https://api.github.com/repos/mezuka/active_merchant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mezuka/active_merchant/merges","archive_url":"https://api.github.com/repos/mezuka/active_merchant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mezuka/active_merchant/downloads","issues_url":"https://api.github.com/repos/mezuka/active_merchant/issues{/number}","pulls_url":"https://api.github.com/repos/mezuka/active_merchant/pulls{/number}","milestones_url":"https://api.github.com/repos/mezuka/active_merchant/milestones{/number}","notifications_url":"https://api.github.com/repos/mezuka/active_merchant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mezuka/active_merchant/labels{/name}","releases_url":"https://api.github.com/repos/mezuka/active_merchant/releases{/id}","deployments_url":"https://api.github.com/repos/mezuka/active_merchant/deployments","created_at":"2016-05-12T23:37:00Z","updated_at":"2016-05-12T23:37:09Z","pushed_at":"2016-05-13T00:00:13Z","git_url":"git://github.com/mezuka/active_merchant.git","ssh_url":"git@github.com:mezuka/active_merchant.git","clone_url":"https://github.com/mezuka/active_merchant.git","svn_url":"https://github.com/mezuka/active_merchant","homepage":"http://activemerchant.org","size":14114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"activemerchant:master","ref":"master","sha":"b721f8604890f0f3ce4ec44855b53c538c3ff493","user":{"login":"activemerchant","id":12955944,"avatar_url":"https://avatars.githubusercontent.com/u/12955944?v=3","gravatar_id":"","url":"https://api.github.com/users/activemerchant","html_url":"https://github.com/activemerchant","followers_url":"https://api.github.com/users/activemerchant/followers","following_url":"https://api.github.com/users/activemerchant/following{/other_user}","gists_url":"https://api.github.com/users/activemerchant/gists{/gist_id}","starred_url":"https://api.github.com/users/activemerchant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activemerchant/subscriptions","organizations_url":"https://api.github.com/users/activemerchant/orgs","repos_url":"https://api.github.com/users/activemerchant/repos","events_url":"https://api.github.com/users/activemerchant/events{/privacy}","received_events_url":"https://api.github.com/users/activemerchant/received_events","type":"Organization","site_admin":false},"repo":{"id":18294,"name":"active_merchant","full_name":"activemerchant/active_merchant","owner":{"login":"activemerchant","id":12955944,"avatar_url":"https://avatars.githubusercontent.com/u/12955944?v=3","gravatar_id":"","url":"https://api.github.com/users/activemerchant","html_url":"https://github.com/activemerchant","followers_url":"https://api.github.com/users/activemerchant/followers","following_url":"https://api.github.com/users/activemerchant/following{/other_user}","gists_url":"https://api.github.com/users/activemerchant/gists{/gist_id}","starred_url":"https://api.github.com/users/activemerchant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activemerchant/subscriptions","organizations_url":"https://api.github.com/users/activemerchant/orgs","repos_url":"https://api.github.com/users/activemerchant/repos","events_url":"https://api.github.com/users/activemerchant/events{/privacy}","received_events_url":"https://api.github.com/users/activemerchant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activemerchant/active_merchant","description":"Active Merchant is a simple payment abstraction library extracted from Shopify. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways.","fork":false,"url":"https://api.github.com/repos/activemerchant/active_merchant","forks_url":"https://api.github.com/repos/activemerchant/active_merchant/forks","keys_url":"https://api.github.com/repos/activemerchant/active_merchant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activemerchant/active_merchant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activemerchant/active_merchant/teams","hooks_url":"https://api.github.com/repos/activemerchant/active_merchant/hooks","issue_events_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/events{/number}","events_url":"https://api.github.com/repos/activemerchant/active_merchant/events","assignees_url":"https://api.github.com/repos/activemerchant/active_merchant/assignees{/user}","branches_url":"https://api.github.com/repos/activemerchant/active_merchant/branches{/branch}","tags_url":"https://api.github.com/repos/activemerchant/active_merchant/tags","blobs_url":"https://api.github.com/repos/activemerchant/active_merchant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activemerchant/active_merchant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activemerchant/active_merchant/git/refs{/sha}","trees_url":"https://api.github.com/repos/activemerchant/active_merchant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activemerchant/active_merchant/statuses/{sha}","languages_url":"https://api.github.com/repos/activemerchant/active_merchant/languages","stargazers_url":"https://api.github.com/repos/activemerchant/active_merchant/stargazers","contributors_url":"https://api.github.com/repos/activemerchant/active_merchant/contributors","subscribers_url":"https://api.github.com/repos/activemerchant/active_merchant/subscribers","subscription_url":"https://api.github.com/repos/activemerchant/active_merchant/subscription","commits_url":"https://api.github.com/repos/activemerchant/active_merchant/commits{/sha}","git_commits_url":"https://api.github.com/repos/activemerchant/active_merchant/git/commits{/sha}","comments_url":"https://api.github.com/repos/activemerchant/active_merchant/comments{/number}","issue_comment_url":"https://api.github.com/repos/activemerchant/active_merchant/issues/comments{/number}","contents_url":"https://api.github.com/repos/activemerchant/active_merchant/contents/{+path}","compare_url":"https://api.github.com/repos/activemerchant/active_merchant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activemerchant/active_merchant/merges","archive_url":"https://api.github.com/repos/activemerchant/active_merchant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activemerchant/active_merchant/downloads","issues_url":"https://api.github.com/repos/activemerchant/active_merchant/issues{/number}","pulls_url":"https://api.github.com/repos/activemerchant/active_merchant/pulls{/number}","milestones_url":"https://api.github.com/repos/activemerchant/active_merchant/milestones{/number}","notifications_url":"https://api.github.com/repos/activemerchant/active_merchant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activemerchant/active_merchant/labels{/name}","releases_url":"https://api.github.com/repos/activemerchant/active_merchant/releases{/id}","deployments_url":"https://api.github.com/repos/activemerchant/active_merchant/deployments","created_at":"2008-05-20T13:53:26Z","updated_at":"2016-05-23T21:19:51Z","pushed_at":"2016-05-23T16:53:46Z","git_url":"git://github.com/activemerchant/active_merchant.git","ssh_url":"git@github.com:activemerchant/active_merchant.git","clone_url":"https://github.com/activemerchant/active_merchant.git","svn_url":"https://github.com/activemerchant/active_merchant","homepage":"http://activemerchant.org","size":24793,"stargazers_count":3334,"watchers_count":3334,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1880,"mirror_url":null,"open_issues_count":92,"forks":1880,"open_issues":92,"watchers":3334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104"},"html":{"href":"https://github.com/activemerchant/active_merchant/pull/2104"},"issue":{"href":"https://api.github.com/repos/activemerchant/active_merchant/issues/2104"},"comments":{"href":"https://api.github.com/repos/activemerchant/active_merchant/issues/2104/comments"},"review_comments":{"href":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104/comments"},"review_comment":{"href":"https://api.github.com/repos/activemerchant/active_merchant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activemerchant/active_merchant/pulls/2104/commits"},"statuses":{"href":"https://api.github.com/repos/activemerchant/active_merchant/statuses/722ff73564385d71cf8326abf41ce0d298d6e7b4"}}}}
{"actor":{"display_login":"timbeiko"}}