{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/175849251","pull_request_review_id":105448063,"id":175849251,"diff_hunk":"@@ -44,6 +45,38 @@ export const requestBillingTransactions = () => {\n \t};\n };\n \n+export const requestBillingTransaction = receiptId => dispatch => {\n+\tdispatch( {\n+\t\ttype: BILLING_RECEIPT_REQUEST,\n+\t\treceiptId,\n+\t} );\n+\n+\treturn wp\n+\t\t.undocumented()\n+\t\t.me()\n+\t\t.getReceipt( receiptId, { format: 'display' } )\n+\t\t.then( receipt => {\n+\t\t\tdispatch( {\n+\t\t\t\ttype: BILLING_RECEIPT_REQUEST_SUCCESS,\n+\t\t\t\treceiptId,\n+\t\t\t\treceipt,\n+\t\t\t} );\n+\t\t} )\n+\t\t.catch( error => {\n+\t\t\tdispatch( {\n+\t\t\t\ttype: BILLING_RECEIPT_REQUEST_FAILURE,\n+\t\t\t\treceiptId,\n+\t\t\t\terror,\n+\t\t\t} );\n+\t\t} );\n+};\n+\n+export const clearBillingTransactionError = receiptId => ( {","path":"client/state/billing-transactions/actions.js","position":47,"original_position":47,"commit_id":"f3887a2d2f4cc026bcdb213ff67e54bae4540370","original_commit_id":"c675dc47a3ac8fd948b16f299b315fcab98c1ebc","user":{"login":"marcinbot","id":800604,"avatar_url":"https://avatars1.githubusercontent.com/u/800604?v=4","gravatar_id":"","url":"https://api.github.com/users/marcinbot","html_url":"https://github.com/marcinbot","followers_url":"https://api.github.com/users/marcinbot/followers","following_url":"https://api.github.com/users/marcinbot/following{/other_user}","gists_url":"https://api.github.com/users/marcinbot/gists{/gist_id}","starred_url":"https://api.github.com/users/marcinbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcinbot/subscriptions","organizations_url":"https://api.github.com/users/marcinbot/orgs","repos_url":"https://api.github.com/users/marcinbot/repos","events_url":"https://api.github.com/users/marcinbot/events{/privacy}","received_events_url":"https://api.github.com/users/marcinbot/received_events","type":"User","site_admin":false},"body":"This is used to remove the error from the state tree so that when \"Try again\" is clicked on the notice, it will not cause a redirect.\r\n\r\nI'm looking into fixing the redux state, so might still remove this.","created_at":"2018-03-20T17:08:47Z","updated_at":"2018-03-20T17:08:48Z","html_url":"https://github.com/Automattic/wp-calypso/pull/22442#discussion_r175849251","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/175849251"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/22442#discussion_r175849251"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442"}},"in_reply_to_id":175349990},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442","id":169150902,"html_url":"https://github.com/Automattic/wp-calypso/pull/22442","diff_url":"https://github.com/Automattic/wp-calypso/pull/22442.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/22442.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/22442","number":22442,"state":"open","locked":false,"title":"Allow older receipts to be viewed at their direct URL","user":{"login":"marcinbot","id":800604,"avatar_url":"https://avatars1.githubusercontent.com/u/800604?v=4","gravatar_id":"","url":"https://api.github.com/users/marcinbot","html_url":"https://github.com/marcinbot","followers_url":"https://api.github.com/users/marcinbot/followers","following_url":"https://api.github.com/users/marcinbot/following{/other_user}","gists_url":"https://api.github.com/users/marcinbot/gists{/gist_id}","starred_url":"https://api.github.com/users/marcinbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcinbot/subscriptions","organizations_url":"https://api.github.com/users/marcinbot/orgs","repos_url":"https://api.github.com/users/marcinbot/repos","events_url":"https://api.github.com/users/marcinbot/events{/privacy}","received_events_url":"https://api.github.com/users/marcinbot/received_events","type":"User","site_admin":false},"body":"Work related to p7bbVw-2nJ-p2\r\n\r\n~~Requires D10212-code to be shipped before this.~~ The backend changes have been deployed\r\n\r\nTo test:\r\n* attempt to load an old receipt (one that is not included in the first 200 that are fetched on the history page) by navigating directly to its URL (`/me/purchases/billing/{receiptId}`)\r\n* the page should load\r\n* the page should still redirect if the receipt doesn't exist","created_at":"2018-02-14T16:04:06Z","updated_at":"2018-03-20T17:08:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a128ab9f6dc9c9cbabe17342bec09d8ea10429c9","assignee":{"login":"marcinbot","id":800604,"avatar_url":"https://avatars1.githubusercontent.com/u/800604?v=4","gravatar_id":"","url":"https://api.github.com/users/marcinbot","html_url":"https://github.com/marcinbot","followers_url":"https://api.github.com/users/marcinbot/followers","following_url":"https://api.github.com/users/marcinbot/following{/other_user}","gists_url":"https://api.github.com/users/marcinbot/gists{/gist_id}","starred_url":"https://api.github.com/users/marcinbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcinbot/subscriptions","organizations_url":"https://api.github.com/users/marcinbot/orgs","repos_url":"https://api.github.com/users/marcinbot/repos","events_url":"https://api.github.com/users/marcinbot/events{/privacy}","received_events_url":"https://api.github.com/users/marcinbot/received_events","type":"User","site_admin":false},"assignees":[{"login":"marcinbot","id":800604,"avatar_url":"https://avatars1.githubusercontent.com/u/800604?v=4","gravatar_id":"","url":"https://api.github.com/users/marcinbot","html_url":"https://github.com/marcinbot","followers_url":"https://api.github.com/users/marcinbot/followers","following_url":"https://api.github.com/users/marcinbot/following{/other_user}","gists_url":"https://api.github.com/users/marcinbot/gists{/gist_id}","starred_url":"https://api.github.com/users/marcinbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcinbot/subscriptions","organizations_url":"https://api.github.com/users/marcinbot/orgs","repos_url":"https://api.github.com/users/marcinbot/repos","events_url":"https://api.github.com/users/marcinbot/events{/privacy}","received_events_url":"https://api.github.com/users/marcinbot/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":763775593,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Store%20Services","name":"Store Services","color":"96588a","default":false},{"id":285010018,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/22442/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/f3887a2d2f4cc026bcdb213ff67e54bae4540370","head":{"label":"Automattic:add/individual-receipt-fetch","ref":"add/individual-receipt-fetch","sha":"f3887a2d2f4cc026bcdb213ff67e54bae4540370","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-03-20T17:00:56Z","pushed_at":"2018-03-20T17:00:37Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":80599,"stargazers_count":9811,"watchers_count":9811,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1373,"mirror_url":null,"archived":false,"open_issues_count":1480,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1373,"open_issues":1480,"watchers":9811,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"570fb38b6992eb9f8a4f2db05348a581e3560356","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-03-20T17:00:56Z","pushed_at":"2018-03-20T17:00:37Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":80599,"stargazers_count":9811,"watchers_count":9811,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1373,"mirror_url":null,"archived":false,"open_issues_count":1480,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1373,"open_issues":1480,"watchers":9811,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/22442"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/22442"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/22442/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/22442/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/f3887a2d2f4cc026bcdb213ff67e54bae4540370"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"marcinbot"}}