{"action":"created","comment":{"url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/comments/111392261","pull_request_review_id":32634323,"id":111392261,"diff_hunk":"@@ -0,0 +1,482 @@\n+'use strict';\n+/* eslint-disable no-new */\n+/* eslint-disable */","path":"test/unit/views/payment-sheet-views/base-paypal-view.js","position":3,"original_position":3,"commit_id":"362b171574c3ba5bcf38c2453a1d26ebde4d9460","original_commit_id":"362b171574c3ba5bcf38c2453a1d26ebde4d9460","user":{"login":"crookedneighbor","id":2916945,"avatar_url":"https://avatars2.githubusercontent.com/u/2916945?v=3","gravatar_id":"","url":"https://api.github.com/users/crookedneighbor","html_url":"https://github.com/crookedneighbor","followers_url":"https://api.github.com/users/crookedneighbor/followers","following_url":"https://api.github.com/users/crookedneighbor/following{/other_user}","gists_url":"https://api.github.com/users/crookedneighbor/gists{/gist_id}","starred_url":"https://api.github.com/users/crookedneighbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crookedneighbor/subscriptions","organizations_url":"https://api.github.com/users/crookedneighbor/orgs","repos_url":"https://api.github.com/users/crookedneighbor/repos","events_url":"https://api.github.com/users/crookedneighbor/events{/privacy}","received_events_url":"https://api.github.com/users/crookedneighbor/received_events","type":"User","site_admin":false},"body":"We don't this was a mistake. Thanks for catching it!","created_at":"2017-04-13T13:43:13Z","updated_at":"2017-04-13T13:43:13Z","html_url":"https://github.com/braintree/braintree-web-drop-in/pull/126#discussion_r111392261","pull_request_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126","_links":{"self":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/comments/111392261"},"html":{"href":"https://github.com/braintree/braintree-web-drop-in/pull/126#discussion_r111392261"},"pull_request":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126","id":115392322,"html_url":"https://github.com/braintree/braintree-web-drop-in/pull/126","diff_url":"https://github.com/braintree/braintree-web-drop-in/pull/126.diff","patch_url":"https://github.com/braintree/braintree-web-drop-in/pull/126.patch","issue_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/126","number":126,"state":"open","locked":false,"title":"Add PayPal Credit","user":{"login":"lilaconlee","id":7514489,"avatar_url":"https://avatars1.githubusercontent.com/u/7514489?v=3","gravatar_id":"","url":"https://api.github.com/users/lilaconlee","html_url":"https://github.com/lilaconlee","followers_url":"https://api.github.com/users/lilaconlee/followers","following_url":"https://api.github.com/users/lilaconlee/following{/other_user}","gists_url":"https://api.github.com/users/lilaconlee/gists{/gist_id}","starred_url":"https://api.github.com/users/lilaconlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilaconlee/subscriptions","organizations_url":"https://api.github.com/users/lilaconlee/orgs","repos_url":"https://api.github.com/users/lilaconlee/repos","events_url":"https://api.github.com/users/lilaconlee/events{/privacy}","received_events_url":"https://api.github.com/users/lilaconlee/received_events","type":"User","site_admin":false},"body":"### Summary\r\nThis adds PayPal Credit to Drop-in with the following API:\r\n```js\r\n+braintree.dropin.create({\r\n+  authorization: 'CLIENT_AUTHORIZATION',\r\n+  selector: '#dropin-container',\r\n+  paypalCredit: {\r\n+    flow: 'checkout', // Required for PayPal Credit\r\n+    amount: 10.00,\r\n+    currency: 'USD'\r\n+  }\r\n+}, callback);\r\n```\r\n\r\nThe major change is pulling out the good bits of the `PayPalView` into `BasePayPalView` so it can be used for both the PayPal and PayPal Credit flows with minor changes. \r\n\r\nIt will appear like so: \r\n\r\n![screen shot 2017-04-11 at 11 17 42 am](https://cloud.githubusercontent.com/assets/7514489/24926019/d039ca6e-1ebf-11e7-8820-2fc7743ddf26.png)\r\n\r\n![screen shot 2017-04-11 at 11 19 25 am](https://cloud.githubusercontent.com/assets/7514489/24926021/d1a3a302-1ebf-11e7-9dd8-e9643c9a74b6.png)\r\n\r\nWe're working on refining the icons for PayPal and PayPal Credit, but that will be done as a separate PR.\r\n\r\n### Checklist\r\n\r\n- [x] Added a changelog entry\r\n- [x] Ran unit tests\r\n","created_at":"2017-04-11T19:07:21Z","updated_at":"2017-04-13T13:43:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a269eceb88cc368fcfad159b0bcd5ae9c99eaf7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126/commits","review_comments_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126/comments","review_comment_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/comments{/number}","comments_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/126/comments","statuses_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/statuses/362b171574c3ba5bcf38c2453a1d26ebde4d9460","head":{"label":"braintree:add-paypal-credit","ref":"add-paypal-credit","sha":"362b171574c3ba5bcf38c2453a1d26ebde4d9460","user":{"login":"braintree","id":3453,"avatar_url":"https://avatars1.githubusercontent.com/u/3453?v=3","gravatar_id":"","url":"https://api.github.com/users/braintree","html_url":"https://github.com/braintree","followers_url":"https://api.github.com/users/braintree/followers","following_url":"https://api.github.com/users/braintree/following{/other_user}","gists_url":"https://api.github.com/users/braintree/gists{/gist_id}","starred_url":"https://api.github.com/users/braintree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braintree/subscriptions","organizations_url":"https://api.github.com/users/braintree/orgs","repos_url":"https://api.github.com/users/braintree/repos","events_url":"https://api.github.com/users/braintree/events{/privacy}","received_events_url":"https://api.github.com/users/braintree/received_events","type":"Organization","site_admin":false},"repo":{"id":66477318,"name":"braintree-web-drop-in","full_name":"braintree/braintree-web-drop-in","owner":{"login":"braintree","id":3453,"avatar_url":"https://avatars1.githubusercontent.com/u/3453?v=3","gravatar_id":"","url":"https://api.github.com/users/braintree","html_url":"https://github.com/braintree","followers_url":"https://api.github.com/users/braintree/followers","following_url":"https://api.github.com/users/braintree/following{/other_user}","gists_url":"https://api.github.com/users/braintree/gists{/gist_id}","starred_url":"https://api.github.com/users/braintree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braintree/subscriptions","organizations_url":"https://api.github.com/users/braintree/orgs","repos_url":"https://api.github.com/users/braintree/repos","events_url":"https://api.github.com/users/braintree/events{/privacy}","received_events_url":"https://api.github.com/users/braintree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/braintree/braintree-web-drop-in","description":"Braintree Drop-in for the web","fork":false,"url":"https://api.github.com/repos/braintree/braintree-web-drop-in","forks_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/forks","keys_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/keys{/key_id}","collaborators_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/teams","hooks_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/hooks","issue_events_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/events{/number}","events_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/events","assignees_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/assignees{/user}","branches_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/branches{/branch}","tags_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/tags","blobs_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/refs{/sha}","trees_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/trees{/sha}","statuses_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/statuses/{sha}","languages_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/languages","stargazers_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/stargazers","contributors_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/contributors","subscribers_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/subscribers","subscription_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/subscription","commits_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/commits{/sha}","git_commits_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/commits{/sha}","comments_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/comments{/number}","issue_comment_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/comments{/number}","contents_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/contents/{+path}","compare_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/compare/{base}...{head}","merges_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/merges","archive_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/downloads","issues_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues{/number}","pulls_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls{/number}","milestones_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/milestones{/number}","notifications_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/labels{/name}","releases_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/releases{/id}","deployments_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/deployments","created_at":"2016-08-24T15:44:16Z","updated_at":"2017-03-20T18:19:17Z","pushed_at":"2017-04-12T16:01:06Z","git_url":"git://github.com/braintree/braintree-web-drop-in.git","ssh_url":"git@github.com:braintree/braintree-web-drop-in.git","clone_url":"https://github.com/braintree/braintree-web-drop-in.git","svn_url":"https://github.com/braintree/braintree-web-drop-in","homepage":"","size":600,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":6,"default_branch":"master"}},"base":{"label":"braintree:master","ref":"master","sha":"87bd5df3a2ae034bbeee227d5c8c96caf00180ac","user":{"login":"braintree","id":3453,"avatar_url":"https://avatars1.githubusercontent.com/u/3453?v=3","gravatar_id":"","url":"https://api.github.com/users/braintree","html_url":"https://github.com/braintree","followers_url":"https://api.github.com/users/braintree/followers","following_url":"https://api.github.com/users/braintree/following{/other_user}","gists_url":"https://api.github.com/users/braintree/gists{/gist_id}","starred_url":"https://api.github.com/users/braintree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braintree/subscriptions","organizations_url":"https://api.github.com/users/braintree/orgs","repos_url":"https://api.github.com/users/braintree/repos","events_url":"https://api.github.com/users/braintree/events{/privacy}","received_events_url":"https://api.github.com/users/braintree/received_events","type":"Organization","site_admin":false},"repo":{"id":66477318,"name":"braintree-web-drop-in","full_name":"braintree/braintree-web-drop-in","owner":{"login":"braintree","id":3453,"avatar_url":"https://avatars1.githubusercontent.com/u/3453?v=3","gravatar_id":"","url":"https://api.github.com/users/braintree","html_url":"https://github.com/braintree","followers_url":"https://api.github.com/users/braintree/followers","following_url":"https://api.github.com/users/braintree/following{/other_user}","gists_url":"https://api.github.com/users/braintree/gists{/gist_id}","starred_url":"https://api.github.com/users/braintree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braintree/subscriptions","organizations_url":"https://api.github.com/users/braintree/orgs","repos_url":"https://api.github.com/users/braintree/repos","events_url":"https://api.github.com/users/braintree/events{/privacy}","received_events_url":"https://api.github.com/users/braintree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/braintree/braintree-web-drop-in","description":"Braintree Drop-in for the web","fork":false,"url":"https://api.github.com/repos/braintree/braintree-web-drop-in","forks_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/forks","keys_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/keys{/key_id}","collaborators_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/teams","hooks_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/hooks","issue_events_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/events{/number}","events_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/events","assignees_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/assignees{/user}","branches_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/branches{/branch}","tags_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/tags","blobs_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/refs{/sha}","trees_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/trees{/sha}","statuses_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/statuses/{sha}","languages_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/languages","stargazers_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/stargazers","contributors_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/contributors","subscribers_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/subscribers","subscription_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/subscription","commits_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/commits{/sha}","git_commits_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/git/commits{/sha}","comments_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/comments{/number}","issue_comment_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/comments{/number}","contents_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/contents/{+path}","compare_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/compare/{base}...{head}","merges_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/merges","archive_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/downloads","issues_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues{/number}","pulls_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls{/number}","milestones_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/milestones{/number}","notifications_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/labels{/name}","releases_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/releases{/id}","deployments_url":"https://api.github.com/repos/braintree/braintree-web-drop-in/deployments","created_at":"2016-08-24T15:44:16Z","updated_at":"2017-03-20T18:19:17Z","pushed_at":"2017-04-12T16:01:06Z","git_url":"git://github.com/braintree/braintree-web-drop-in.git","ssh_url":"git@github.com:braintree/braintree-web-drop-in.git","clone_url":"https://github.com/braintree/braintree-web-drop-in.git","svn_url":"https://github.com/braintree/braintree-web-drop-in","homepage":"","size":600,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126"},"html":{"href":"https://github.com/braintree/braintree-web-drop-in/pull/126"},"issue":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/126"},"comments":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/braintree/braintree-web-drop-in/statuses/362b171574c3ba5bcf38c2453a1d26ebde4d9460"}}}}
{"actor":{"display_login":"crookedneighbor"}}