{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4495","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4495/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4495/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4495/events","html_url":"https://github.com/Automattic/wp-calypso/pull/4495","id":145552226,"number":4495,"title":"Purchases: Update the cancellation confirmation screen for domains","user":{"login":"Tug","id":230230,"avatar_url":"https://avatars.githubusercontent.com/u/230230?v=3","gravatar_id":"","url":"https://api.github.com/users/Tug","html_url":"https://github.com/Tug","followers_url":"https://api.github.com/users/Tug/followers","following_url":"https://api.github.com/users/Tug/following{/other_user}","gists_url":"https://api.github.com/users/Tug/gists{/gist_id}","starred_url":"https://api.github.com/users/Tug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tug/subscriptions","organizations_url":"https://api.github.com/users/Tug/orgs","repos_url":"https://api.github.com/users/Tug/repos","events_url":"https://api.github.com/users/Tug/events{/privacy}","received_events_url":"https://api.github.com/users/Tug/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Purchases","name":"Purchases","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"Tug","id":230230,"avatar_url":"https://avatars.githubusercontent.com/u/230230?v=3","gravatar_id":"","url":"https://api.github.com/users/Tug","html_url":"https://github.com/Tug","followers_url":"https://api.github.com/users/Tug/followers","following_url":"https://api.github.com/users/Tug/following{/other_user}","gists_url":"https://api.github.com/users/Tug/gists{/gist_id}","starred_url":"https://api.github.com/users/Tug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tug/subscriptions","organizations_url":"https://api.github.com/users/Tug/orgs","repos_url":"https://api.github.com/users/Tug/repos","events_url":"https://api.github.com/users/Tug/events{/privacy}","received_events_url":"https://api.github.com/users/Tug/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/63","html_url":"https://github.com/Automattic/wp-calypso/milestones/Amber:%20Sprint","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/63/labels","id":1610097,"number":63,"title":"Amber: Sprint","description":null,"creator":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":30,"state":"open","created_at":"2016-02-28T11:47:27Z","updated_at":"2016-04-05T08:07:57Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-04-03T23:27:57Z","updated_at":"2016-04-05T08:09:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4495","html_url":"https://github.com/Automattic/wp-calypso/pull/4495","diff_url":"https://github.com/Automattic/wp-calypso/pull/4495.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/4495.patch"},"body":"Reimplement the \"confirm cancel puchase\" form for domains on the client.\r\nPreviously the form was returned by the API and injected into Calypso.\r\n\r\n#### Testing Instructions\r\n- `git fetch -a && git checkout update/confirm-cancel`\r\n- Purchase a .live domain from Calypso using the sandbox store\r\n- Go to http://calypso.localhost:3000/purchases\r\n- Find your domain purchase and click on it.\r\n- The `Cancel Domain and Refund` option should be displayed.\r\n- Click on it then click on `Cancel Domain and Refund`\r\n- Ensure you land on http://calypso.localhost:3000/purchases/{SITE_ID}/{PURCHASE_ID}/confirm-cancel-domain\r\n- Choose a reason for canceling your domain, check the checkbox (eventually enter a message in the textarea) and click on `Cancel Domain`.\r\n- Verify that you are redirected to http://calypso.localhost:3000/purchases and that the following success notice is displayed: \r\n\"[domain] was successfully cancelled and refunded.\"\r\n- Verify that the domain no longer appears in the list of purchases\r\n\r\n#### Reviews\r\n\r\n- [x] Product Review\r\n- [x] Code Review"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/205713919","html_url":"https://github.com/Automattic/wp-calypso/pull/4495#issuecomment-205713919","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4495","id":205713919,"user":{"login":"scruffian","id":275961,"avatar_url":"https://avatars.githubusercontent.com/u/275961?v=3","gravatar_id":"","url":"https://api.github.com/users/scruffian","html_url":"https://github.com/scruffian","followers_url":"https://api.github.com/users/scruffian/followers","following_url":"https://api.github.com/users/scruffian/following{/other_user}","gists_url":"https://api.github.com/users/scruffian/gists{/gist_id}","starred_url":"https://api.github.com/users/scruffian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scruffian/subscriptions","organizations_url":"https://api.github.com/users/scruffian/orgs","repos_url":"https://api.github.com/users/scruffian/repos","events_url":"https://api.github.com/users/scruffian/events{/privacy}","received_events_url":"https://api.github.com/users/scruffian/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T08:09:38Z","updated_at":"2016-04-05T08:09:38Z","body":"This looks good. I noticed #4518 while testing, but we should fix that in a different PR.\r\n\r\nLGTM :+1: "}}