{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/reaction/pulls/comments/231152217","pull_request_review_id":172055320,"id":231152217,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTE1MjIxNw==","diff_hunk":"@@ -0,0 +1,58 @@\n+import React from \"react\"\n+import { RelayProp } from \"react-relay\"\n+import { Elements, StripeProvider } from \"react-stripe-elements\"\n+import PaymentForm from \"./PaymentForm\"\n+\n+declare global {\n+  interface Window {\n+    Stripe?: (key: string) => stripe.Stripe\n+    sd: {\n+      STRIPE_PUBLISHABLE_KEY: string\n+    }\n+  }\n+}","path":"src/Components/Payment/PaymentFormWrapper.tsx","position":11,"original_position":13,"commit_id":"256fa67c19eebda1c2e3ff8dad53df4696c0cb88","original_commit_id":"64fca28d0d4ba9419da1d2b9012a76467ce094e7","user":{"login":"sweir27","id":2081340,"node_id":"MDQ6VXNlcjIwODEzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"body":"updated\r\n","created_at":"2018-11-06T14:52:09Z","updated_at":"2018-11-06T14:52:09Z","html_url":"https://github.com/artsy/reaction/pull/1485#discussion_r231152217","pull_request_url":"https://api.github.com/repos/artsy/reaction/pulls/1485","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/artsy/reaction/pulls/comments/231152217"},"html":{"href":"https://github.com/artsy/reaction/pull/1485#discussion_r231152217"},"pull_request":{"href":"https://api.github.com/repos/artsy/reaction/pulls/1485"}},"in_reply_to_id":230526369},"pull_request":{"url":"https://api.github.com/repos/artsy/reaction/pulls/1485","id":228069918,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MDY5OTE4","html_url":"https://github.com/artsy/reaction/pull/1485","diff_url":"https://github.com/artsy/reaction/pull/1485.diff","patch_url":"https://github.com/artsy/reaction/pull/1485.patch","issue_url":"https://api.github.com/repos/artsy/reaction/issues/1485","number":1485,"state":"open","locked":false,"title":"Alternate payment form","user":{"login":"sweir27","id":2081340,"node_id":"MDQ6VXNlcjIwODEzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"body":"This is a big PR, so I'll try to break it down. (Also it'll likely need a rebase/update when https://github.com/artsy/metaphysics/pull/1367 is merged)\r\n\r\nThis adds a payment form that will be used in the user/settings view:\r\n![payment-page](https://user-images.githubusercontent.com/2081340/47942666-15c7ab80-dec9-11e8-94f7-0b4fd41ad3a2.gif)\r\n\r\nRoughly, it's a component that'll get stitched into Force with the following component structure:\r\n- `UserSettingsPayments`: The outer-level component. It will embed the `SavedCreditCards` view if there are any saved credit cards. It always renders the `PaymentForm`.\r\n- `SavedCreditCards` displays a list of credit cards that are connected to the current user. You can Remove them and remain on the page.\r\n- `PaymentForm` is adapted from the payment form used in the checkout flow. Since there is slightly different validation logic and it's sending a different mutation, I feel OK about not trying to overload the other component to handle both of these cases. It's actually not so bad since we've extracted `AddressForm` and the `CreditCardInput`.\r\n- `PaymentFormWrapper` just wraps the `PaymentForm` with the stripe context. ","created_at":"2018-11-02T22:02:49Z","updated_at":"2018-11-06T14:52:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f1f9c670688fe81cc91fdf4d9bed71322809fe2","assignee":{"login":"damassi","id":236943,"node_id":"MDQ6VXNlcjIzNjk0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/236943?v=4","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false},"assignees":[{"login":"damassi","id":236943,"node_id":"MDQ6VXNlcjIzNjk0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/236943?v=4","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mzikherman","id":1457859,"node_id":"MDQ6VXNlcjE0NTc4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},{"login":"zephraph","id":3087225,"node_id":"MDQ6VXNlcjMwODcyMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/3087225?v=4","gravatar_id":"","url":"https://api.github.com/users/zephraph","html_url":"https://github.com/zephraph","followers_url":"https://api.github.com/users/zephraph/followers","following_url":"https://api.github.com/users/zephraph/following{/other_user}","gists_url":"https://api.github.com/users/zephraph/gists{/gist_id}","starred_url":"https://api.github.com/users/zephraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephraph/subscriptions","organizations_url":"https://api.github.com/users/zephraph/orgs","repos_url":"https://api.github.com/users/zephraph/repos","events_url":"https://api.github.com/users/zephraph/events{/privacy}","received_events_url":"https://api.github.com/users/zephraph/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/reaction/pulls/1485/commits","review_comments_url":"https://api.github.com/repos/artsy/reaction/pulls/1485/comments","review_comment_url":"https://api.github.com/repos/artsy/reaction/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/reaction/issues/1485/comments","statuses_url":"https://api.github.com/repos/artsy/reaction/statuses/256fa67c19eebda1c2e3ff8dad53df4696c0cb88","head":{"label":"sweir27:alternate-payment","ref":"alternate-payment","sha":"256fa67c19eebda1c2e3ff8dad53df4696c0cb88","user":{"login":"sweir27","id":2081340,"node_id":"MDQ6VXNlcjIwODEzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"repo":{"id":129785860,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk3ODU4NjA=","name":"reaction","full_name":"sweir27/reaction","private":false,"owner":{"login":"sweir27","id":2081340,"node_id":"MDQ6VXNlcjIwODEzNDA=","avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sweir27/reaction","description":"Artsy’s React Components","fork":true,"url":"https://api.github.com/repos/sweir27/reaction","forks_url":"https://api.github.com/repos/sweir27/reaction/forks","keys_url":"https://api.github.com/repos/sweir27/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweir27/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweir27/reaction/teams","hooks_url":"https://api.github.com/repos/sweir27/reaction/hooks","issue_events_url":"https://api.github.com/repos/sweir27/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/sweir27/reaction/events","assignees_url":"https://api.github.com/repos/sweir27/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/sweir27/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/sweir27/reaction/tags","blobs_url":"https://api.github.com/repos/sweir27/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweir27/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweir27/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweir27/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweir27/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/sweir27/reaction/languages","stargazers_url":"https://api.github.com/repos/sweir27/reaction/stargazers","contributors_url":"https://api.github.com/repos/sweir27/reaction/contributors","subscribers_url":"https://api.github.com/repos/sweir27/reaction/subscribers","subscription_url":"https://api.github.com/repos/sweir27/reaction/subscription","commits_url":"https://api.github.com/repos/sweir27/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweir27/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweir27/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweir27/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweir27/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/sweir27/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweir27/reaction/merges","archive_url":"https://api.github.com/repos/sweir27/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweir27/reaction/downloads","issues_url":"https://api.github.com/repos/sweir27/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/sweir27/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/sweir27/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/sweir27/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweir27/reaction/labels{/name}","releases_url":"https://api.github.com/repos/sweir27/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/sweir27/reaction/deployments","created_at":"2018-04-16T18:09:51Z","updated_at":"2018-04-16T18:09:54Z","pushed_at":"2018-11-06T14:50:09Z","git_url":"git://github.com/sweir27/reaction.git","ssh_url":"git@github.com:sweir27/reaction.git","clone_url":"https://github.com/sweir27/reaction.git","svn_url":"https://github.com/sweir27/reaction","homepage":"https://artsy.github.io/reaction","size":19868,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"ece66264e06dff9f1c36c93efdc0e239657b6a92","user":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":81253735,"node_id":"MDEwOlJlcG9zaXRvcnk4MTI1MzczNQ==","name":"reaction","full_name":"artsy/reaction","private":false,"owner":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/artsy/reaction","description":"Artsy’s React Components","fork":false,"url":"https://api.github.com/repos/artsy/reaction","forks_url":"https://api.github.com/repos/artsy/reaction/forks","keys_url":"https://api.github.com/repos/artsy/reaction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/reaction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/reaction/teams","hooks_url":"https://api.github.com/repos/artsy/reaction/hooks","issue_events_url":"https://api.github.com/repos/artsy/reaction/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/reaction/events","assignees_url":"https://api.github.com/repos/artsy/reaction/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/reaction/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/reaction/tags","blobs_url":"https://api.github.com/repos/artsy/reaction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/reaction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/reaction/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/reaction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/reaction/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/reaction/languages","stargazers_url":"https://api.github.com/repos/artsy/reaction/stargazers","contributors_url":"https://api.github.com/repos/artsy/reaction/contributors","subscribers_url":"https://api.github.com/repos/artsy/reaction/subscribers","subscription_url":"https://api.github.com/repos/artsy/reaction/subscription","commits_url":"https://api.github.com/repos/artsy/reaction/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/reaction/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/reaction/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/reaction/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/reaction/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/reaction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/reaction/merges","archive_url":"https://api.github.com/repos/artsy/reaction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/reaction/downloads","issues_url":"https://api.github.com/repos/artsy/reaction/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/reaction/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/reaction/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/reaction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/reaction/labels{/name}","releases_url":"https://api.github.com/repos/artsy/reaction/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/reaction/deployments","created_at":"2017-02-07T21:00:51Z","updated_at":"2018-11-06T09:46:56Z","pushed_at":"2018-11-06T14:50:11Z","git_url":"git://github.com/artsy/reaction.git","ssh_url":"git@github.com:artsy/reaction.git","clone_url":"https://github.com/artsy/reaction.git","svn_url":"https://github.com/artsy/reaction","homepage":"https://artsy.github.io/reaction","size":22352,"stargazers_count":200,"watchers_count":200,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":45,"open_issues":32,"watchers":200,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/reaction/pulls/1485"},"html":{"href":"https://github.com/artsy/reaction/pull/1485"},"issue":{"href":"https://api.github.com/repos/artsy/reaction/issues/1485"},"comments":{"href":"https://api.github.com/repos/artsy/reaction/issues/1485/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/reaction/pulls/1485/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/reaction/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/reaction/pulls/1485/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/reaction/statuses/256fa67c19eebda1c2e3ff8dad53df4696c0cb88"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sweir27"}}