{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7661","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7661/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7661/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7661/events","html_url":"https://github.com/Automattic/wp-calypso/pull/7661","id":173193781,"number":7661,"title":"Components: Change CreditCardPage from component to block","user":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Checkout","name":"Checkout","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Components","name":"Components","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Payment%20Methods","name":"Payment Methods","color":"006b75"},{"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"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Janitorial","name":"[Type] Janitorial","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"assignees":[{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-08-25T12:47:49Z","updated_at":"2016-08-26T10:18:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7661","html_url":"https://github.com/Automattic/wp-calypso/pull/7661","diff_url":"https://github.com/Automattic/wp-calypso/pull/7661.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/7661.patch"},"body":"In response to #7022 this PR refactors `<CreditCardPage />` and moves it to blocks folder with the more accurate name `<CreditCardForm />`. To help that happen I also decided to rename the existing component `<CreditCardForm />` to `<CreditCardFormFields />` which better explains it's purpose.\r\n\r\nAs part of this change I also added `<CreditCardPage />` example to devdocs and missing README file.\r\n\r\n![screen shot 2016-08-25 at 17 02 07](https://cloud.githubusercontent.com/assets/699132/17996372/b1e8ab1c-6b68-11e6-9d22-47c06a4fab42.png)\r\n\r\n### Testing\r\nTest live: https://calypso.live/?branch=update/rename-credit-card-components\r\n\r\n1. Go to DevDocs: https://calypso.live/devdocs/blocks.\r\n2. You should see Credit Card form there. You can even play with it. Validation works as in other places, but the possibility to Save Card is disabled :) \r\n3. Go to Add Credit Card page: https://calypso.live/payment-methods/add-credit-card.\r\n4. Credit Card form should look and work like before.\r\n5. Go to Manage Purchases page (https://calypso.live/purchases).\r\n6. Select a purchase paid with credit card.\r\n7. Click on Edit Payment Method link.\r\n8. Make sure Credit Card form looks like before.\r\n9. Go through purchase flow and make sure Credit Card form looks like before."},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/242691681","html_url":"https://github.com/Automattic/wp-calypso/pull/7661#issuecomment-242691681","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7661","id":242691681,"user":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T10:18:30Z","updated_at":"2016-08-26T10:18:30Z","body":"Thanks @janm6k :)"}}
{"actor":{"display_login":"gziolo"}}